summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_instructions.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-04-11 10:10:30 -0700
committerIan Romanick <[email protected]>2011-04-18 14:43:48 -0700
commit3d5cfcfed16c5a79bdf67027afe4ea8058b899cb (patch)
treeb2e3b12fe452195f5d74e0fe231c98d120d3a351 /src/glsl/lower_instructions.cpp
parent7ca38f5d973cf93bf19e27f3f24c0896e43b16e6 (diff)
glsl: Emit a warning when the left-hand operand of a comma has no effect
The expression x = y, 5, 3; will generate 0:7(9): warning: left-hand operand of comma expression has no effect The warning is only emitted for the left-hand operands, becuase the right-most operand is the result of the expression. This could be used in an assignment, etc. Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/lower_instructions.cpp')
0 files changed, 0 insertions, 0 deletions