From: Rhys Kidd Date: Thu, 6 Aug 2015 06:34:05 +0000 (+1000) Subject: mesa/glx: Resolve GCC sign-compare warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5bb5b957a1ca33015400dd2274c7b73cb0e40f4;p=mesa.git mesa/glx: Resolve GCC sign-compare warning. mesa/src/glx/dri_common_query_renderer.c: In function 'dri2_convert_glx_query_renderer_attribs': mesa/src/glx/dri_common_query_renderer.c:61:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ARRAY_SIZE(query_renderer_map); i++) ^ Signed-off-by: Rhys Kidd Reviewed-by: Thomas Helland --- diff --git a/src/glx/dri_common_query_renderer.c b/src/glx/dri_common_query_renderer.c index b3e107dc612..ebeedc9c037 100644 --- a/src/glx/dri_common_query_renderer.c +++ b/src/glx/dri_common_query_renderer.c @@ -56,7 +56,7 @@ static const struct { static int dri2_convert_glx_query_renderer_attribs(int attribute) { - int i; + unsigned i; for (i = 0; i < ARRAY_SIZE(query_renderer_map); i++) if (query_renderer_map[i].glx_attrib == attribute)