forked from bartvdbraak/blender
Cleanup: quiet warnings
This commit is contained in:
parent
abb63be099
commit
d1d0f8eb1a
@ -117,7 +117,7 @@ getDisplaySetting(
|
|||||||
if (dpy == NULL)
|
if (dpy == NULL)
|
||||||
return GHOST_kFailure;
|
return GHOST_kFailure;
|
||||||
|
|
||||||
(void) display;
|
(void)display;
|
||||||
|
|
||||||
#ifdef WITH_X11_XF86VMODE
|
#ifdef WITH_X11_XF86VMODE
|
||||||
int majorVersion, minorVersion;
|
int majorVersion, minorVersion;
|
||||||
@ -149,6 +149,7 @@ getDisplaySetting(
|
|||||||
|
|
||||||
GHOST_ASSERT(display < 1, "Only single display systems are currently supported.\n");
|
GHOST_ASSERT(display < 1, "Only single display systems are currently supported.\n");
|
||||||
GHOST_ASSERT(index < 1, "Requested setting outside of valid range.\n");
|
GHOST_ASSERT(index < 1, "Requested setting outside of valid range.\n");
|
||||||
|
(void)index;
|
||||||
|
|
||||||
setting.xPixels = DisplayWidth(dpy, DefaultScreen(dpy));
|
setting.xPixels = DisplayWidth(dpy, DefaultScreen(dpy));
|
||||||
setting.yPixels = DisplayHeight(dpy, DefaultScreen(dpy));
|
setting.yPixels = DisplayHeight(dpy, DefaultScreen(dpy));
|
||||||
@ -267,6 +268,8 @@ setCurrentDisplaySetting(
|
|||||||
return GHOST_kSuccess;
|
return GHOST_kSuccess;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
(void)setting;
|
||||||
|
|
||||||
/* Just pretend the request was successful. */
|
/* Just pretend the request was successful. */
|
||||||
return GHOST_kSuccess;
|
return GHOST_kSuccess;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user