Mesa (master): swrastg: Silence unused value warning.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Mar 30 05:55:53 UTC 2010
Module: Mesa
Branch: master
Commit: f2c55566ee271f34a42587f9def105c99ec06faf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2c55566ee271f34a42587f9def105c99ec06faf
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Mar 29 22:54:35 2010 -0700
swrastg: Silence unused value warning.
---
src/gallium/targets/dri-swrast/swrast_drm_api.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/gallium/targets/dri-swrast/swrast_drm_api.c b/src/gallium/targets/dri-swrast/swrast_drm_api.c
index 63b935b..99c2554 100644
--- a/src/gallium/targets/dri-swrast/swrast_drm_api.c
+++ b/src/gallium/targets/dri-swrast/swrast_drm_api.c
@@ -68,16 +68,16 @@ swrast_create_screen(struct sw_winsys *winsys)
#if defined(GALLIUM_CELL)
if (screen == NULL && strcmp(driver, "cell") == 0)
screen = cell_create_screen( winsys );
-#endif
-
-#if defined(GALLIUM_LLVMPIPE)
+#elif defined(GALLIUM_LLVMPIPE)
if (screen == NULL && strcmp(driver, "llvmpipe") == 0)
screen = llvmpipe_create_screen( winsys );
-#endif
-
-#if defined(GALLIUM_SOFTPIPE)
+#elif defined(GALLIUM_SOFTPIPE)
if (screen == NULL)
screen = softpipe_create_screen( winsys );
+
+ (void) driver;
+#else
+ (void) driver;
#endif
return screen;
More information about the mesa-commit
mailing list