From efa4318cca723991006cebacaa876968c8bf7634 Mon Sep 17 00:00:00 2001 From: beuc Date: Sun, 19 May 2013 14:57:13 +0000 Subject: [PATCH] Fix compilation warning about unused variables and functions git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1620 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/x11/fg_gamemode_x11.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freeglut/freeglut/src/x11/fg_gamemode_x11.c b/freeglut/freeglut/src/x11/fg_gamemode_x11.c index cf2299d..5df4edc 100644 --- a/freeglut/freeglut/src/x11/fg_gamemode_x11.c +++ b/freeglut/freeglut/src/x11/fg_gamemode_x11.c @@ -29,9 +29,9 @@ #include #include "../fg_internal.h" +#ifdef HAVE_X11_EXTENSIONS_XRANDR_H static int xrandr_resize(int xsz, int ysz, int rate, int just_checking) { -#ifdef HAVE_X11_EXTENSIONS_XRANDR_H int event_base, error_base, ver_major, ver_minor, use_rate; XRRScreenConfiguration *xrr_config = 0; Status result = -1; @@ -137,9 +137,9 @@ static int xrandr_resize(int xsz, int ysz, int rate, int just_checking) return 0; } -#endif /* HAVE_X11_EXTENSIONS_XRANDR_H */ return -1; } +#endif /* HAVE_X11_EXTENSIONS_XRANDR_H */ /* * Remembers the current visual settings, so that @@ -147,7 +147,9 @@ static int xrandr_resize(int xsz, int ysz, int rate, int just_checking) */ void fgPlatformRememberState( void ) { +# if defined(HAVE_X11_EXTENSIONS_XRANDR_H) | defined(HAVE_X11_EXTENSIONS_XF86VMODE_H) int event_base, error_base; +# endif /* * Remember the current pointer location before going fullscreen