diff options
author | Vinson Lee <[email protected]> | 2012-01-16 13:02:03 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-01-16 16:13:51 -0800 |
commit | 8e543cc09862abb57e9d4dafe12e20a49972987b (patch) | |
tree | f58fa936074217038918d161816176975f26e815 /src/gallium | |
parent | dd7220652e65a8a23e7739eeee687f3d6a865b80 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | 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 3a989406685..34592a9b21f 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: |