Cleanup: quiet warnings
authorCampbell Barton <ideasman42@gmail.com>
Tue, 8 Sep 2015 09:39:31 +0000 (19:39 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 8 Sep 2015 09:42:58 +0000 (19:42 +1000)
intern/ghost/intern/GHOST_DisplayManagerX11.cpp

index 0cc116292c023dd51c1a975ad53b44557f49e7b3..b3e6f2e53fa4eaacc9a874d87ef9b330ea06bd50 100644 (file)
@@ -117,7 +117,7 @@ getDisplaySetting(
        if (dpy == NULL)
                return GHOST_kFailure;
 
-       (void) display;
+       (void)display;
 
 #ifdef WITH_X11_XF86VMODE
        int majorVersion, minorVersion;
@@ -149,6 +149,7 @@ getDisplaySetting(
 
        GHOST_ASSERT(display < 1, "Only single display systems are currently supported.\n");
        GHOST_ASSERT(index < 1, "Requested setting outside of valid range.\n");
+       (void)index;
 
        setting.xPixels  = DisplayWidth(dpy, DefaultScreen(dpy));
        setting.yPixels = DisplayHeight(dpy, DefaultScreen(dpy));
@@ -267,6 +268,8 @@ setCurrentDisplaySetting(
        return GHOST_kSuccess;
 
 #else
+       (void)setting;
+
        /* Just pretend the request was successful. */
        return GHOST_kSuccess;
 #endif