Re: [Mesa-dev] [PATCH] glsl: Fix tautological comparison.

2014-11-21 Thread Kenneth Graunke
On Friday, November 21, 2014 03:19:12 PM Matt Turner wrote: > Caught by clang. > > warning: comparison of constant -1 with expression of type > 'ir_texture_opcode' is always false > [-Wtautological-constant-out-of-range-compare] > if (op == -1) > ~~ ^ ~~ > --- > sr

[Mesa-dev] [PATCH] glsl: Fix tautological comparison.

2014-11-21 Thread Matt Turner
Caught by clang. warning: comparison of constant -1 with expression of type 'ir_texture_opcode' is always false [-Wtautological-constant-out-of-range-compare] if (op == -1) ~~ ^ ~~ --- src/glsl/ir_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di