Mesa (master): mesa: fix unused variable warning in release builds

Timothy Arceri tarceri at kemper.freedesktop.org
Mon Jun 26 22:08:18 UTC 2017


Module: Mesa
Branch: master
Commit: 62abf6862f24f1633166e47b097f7bd255067c45
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=62abf6862f24f1633166e47b097f7bd255067c45

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Mon Jun 26 09:25:07 2017 +1000

mesa: fix unused variable warning in release builds

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

---

 src/mesa/main/uniforms.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index 91c3bf66f8..71acb28886 100644
--- 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);




More information about the mesa-commit mailing list