Fixed compiler warning.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Dec 2012 19:25:35 -0500
changeset 6749 87254cb5734f
parent 6748 80a6aac67ad9
child 6750 f8633a3d1cda
Fixed compiler warning.
src/joystick/linux/SDL_sysjoystick.c
--- a/src/joystick/linux/SDL_sysjoystick.c	Tue Dec 11 18:46:09 2012 -0500
+++ b/src/joystick/linux/SDL_sysjoystick.c	Tue Dec 11 19:25:35 2012 -0500
@@ -302,6 +302,7 @@
     return numjoysticks++;
 }
 
+#if SDL_USE_LIBUDEV
 /* !!! FIXME: I would love to dump this code and use libudev instead. */
 static int
 MaybeRemoveDevice(const char *path)
@@ -341,6 +342,7 @@
 
     return -1;
 }
+#endif
 
 static int
 JoystickInitWithoutUdev(void)