On 01/16/2012 02:08 PM, Vinson Lee wrote:
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<v...@freedesktop.org>
---
  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 3a98940..34592a9 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:


Reviewed-by: Brian Paul <bri...@vmware.com>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to