Mesa (8.0): softpipe: Silence unused variable warning on non-LLVM builds.
Brian Paul
brianp at kemper.freedesktop.org
Tue Jan 31 14:05:20 UTC 2012
Module: Mesa
Branch: 8.0
Commit: ddd2503750c52c4725e1d083288287b9d8a78322
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ddd2503750c52c4725e1d083288287b9d8a78322
Author: Vinson Lee <vlee at freedesktop.org>
Date: Mon Jan 16 13:02:03 2012 -0800
softpipe: Silence unused variable warning on non-LLVM builds.
Fix this GCC warning with non-LLVM builds.
sp_screen.c: In function ‘softpipe_get_shader_param’:
sp_screen.c:141:28: warning: unused variable ‘sp_screen’ [-Wunused-variable]
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 8e543cc09862abb57e9d4dafe12e20a49972987b)
---
src/gallium/drivers/softpipe/sp_screen.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index f5ff68c..a044c2f 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -138,7 +138,9 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
static int
softpipe_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_shader_cap param)
{
+#ifdef HAVE_LLVM
struct softpipe_screen *sp_screen = softpipe_screen(screen);
+#endif
switch(shader)
{
case PIPE_SHADER_FRAGMENT:
More information about the mesa-commit
mailing list