diff options
author | Rob Herring <[email protected]> | 2017-05-30 15:30:38 -0500 |
---|---|---|
committer | Rob Herring <[email protected]> | 2017-06-07 20:44:26 -0500 |
commit | f4b5510872b94a434a5223e35a67db322aad5e8b (patch) | |
tree | b3002db5c1f8a80711bdca45df3ec6aabf39931a /doxygen/swrast_setup.doxy | |
parent | 18348a383dae41567fd333db6f848fbc8ff7d99b (diff) |
mesa/main: fix gl_buffer_index enum comparison
For clang, enums are unsigned by default and gives the following warning:
external/mesa3d/src/mesa/main/buffers.c:764:21: warning: comparison of constant -1 with expression of type 'gl_buffer_index' is always false [-Wtautological-constant-out-of-range-compare]
if (srcBuffer == -1) {
~~~~~~~~~ ^ ~~
Replace -1 with an enum value to fix this.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'doxygen/swrast_setup.doxy')
0 files changed, 0 insertions, 0 deletions