projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf963e
)
mesa: fix unused variable warning in release builds
author
Timothy Arceri
<tarceri@itsqueeze.com>
Sun, 25 Jun 2017 23:25:07 +0000
(09:25 +1000)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Mon, 26 Jun 2017 22:03:29 +0000
(08:03 +1000)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/uniforms.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/uniforms.c
b/src/mesa/main/uniforms.c
index 91c3bf66f8d88883bed9bfe52248cf8e9c2c050f..71acb288864ac1ba06fc33eeef17afdec5c17c1e 100644
(file)
--- a/
src/mesa/main/uniforms.c
+++ b/
src/mesa/main/uniforms.c
@@
-104,7
+104,8
@@
_mesa_update_shader_textures_used(struct gl_shader_program *shProg,
GLbitfield mask = prog->SamplersUsed;
gl_shader_stage prog_stage =
_mesa_program_enum_to_shader_stage(prog->Target);
- struct gl_linked_shader *shader = shProg->_LinkedShaders[prog_stage];
+ MAYBE_UNUSED struct gl_linked_shader *shader =
+ shProg->_LinkedShaders[prog_stage];
GLuint s;
assert(shader);