Fix unused function warnings
v2: Remove the handler function instead of commenting out
split debugmsg function removal to a separate patch
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
diff --git a/xf86drm.c b/xf86drm.c
index 051ed5d..43d0700 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -277,6 +277,7 @@
* If any other failure happened then it will output error mesage using
* drmMsg() call.
*/
+#if !defined(UDEV)
static int chown_check_return(const char *path, uid_t owner, gid_t group)
{
int rv;
@@ -292,6 +293,7 @@
path, errno, strerror(errno));
return -1;
}
+#endif
/**
* Open the DRM device, creating it if necessary.