projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c77c381
)
st/mesa: silence unused/uninitialized var warnings
author
Brian Paul
<brianp@vmware.com>
Wed, 5 Apr 2017 20:07:45 +0000
(14:07 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Apr 2017 19:46:44 +0000
(13:46 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_to_nir.cpp
b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index 674ccd07a4cce364f750495e93236f71600b481f..72fd70b21557426ed4cf2214bbe8ed14e9aba2de 100644
(file)
--- a/
src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/
src/mesa/state_tracker/st_glsl_to_nir.cpp
@@
-181,10
+181,11
@@
st_nir_assign_uniform_locations(struct gl_program *prog,
continue;
if (uniform->type->is_sampler()) {
- unsigned val;
+ unsigned val
= 0
;
bool found = shader_program->UniformHash->get(val, uniform->name);
loc = shaderidx++;
assert(found);
+ (void) found; /* silence unused var warning */
/* this ensure that nir_lower_samplers looks at the correct
* shader_program->UniformStorage[location]:
*/