Re: [Mesa-dev] [PATCH] glsl: fix compiler warnings in link_uniforms.cpp

2014-03-05 Thread Matt Turner
On Wed, Mar 5, 2014 at 3:42 PM, Brian Paul wrote: > With a non-debug build, gcc has two complaints: > 1. 'found' var not used. Silence with '(void) found;' > 2. 'id' not initialized. It's assigned by the UniformHash->get() >call, actually. But init it to zero to silence gcc. > --- > src/gl

[Mesa-dev] [PATCH] glsl: fix compiler warnings in link_uniforms.cpp

2014-03-05 Thread Brian Paul
With a non-debug build, gcc has two complaints: 1. 'found' var not used. Silence with '(void) found;' 2. 'id' not initialized. It's assigned by the UniformHash->get() call, actually. But init it to zero to silence gcc. --- src/glsl/link_uniforms.cpp |3 ++- 1 file changed, 2 insertions(+