From: Rhys Kidd Date: Thu, 6 Aug 2015 06:33:58 +0000 (+1000) Subject: i965: Resolve GCC sign-compare warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89b285ba0e3503de05e97cbb915485302e2fd37d;p=mesa.git i965: Resolve GCC sign-compare warning. mesa/src/mesa/drivers/dri/i965/brw_wm_state.c: In function 'brw_color_buffer_write_enabled': mesa/src/mesa/drivers/dri/i965/brw_wm_state.c:53:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { ^ Signed-off-by: Rhys Kidd Reviewed-by: Thomas Helland --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_state.c b/src/mesa/drivers/dri/i965/brw_wm_state.c index 0cd439046b3..cd0b56ba60c 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_state.c @@ -47,7 +47,7 @@ brw_color_buffer_write_enabled(struct brw_context *brw) struct gl_context *ctx = &brw->ctx; /* BRW_NEW_FRAGMENT_PROGRAM */ const struct gl_fragment_program *fp = brw->fragment_program; - int i; + unsigned i; /* _NEW_BUFFERS */ for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) {