mesa/glx: Resolve GCC sign-compare warning.
authorRhys Kidd <rhyskidd@gmail.com>
Thu, 6 Aug 2015 06:34:05 +0000 (16:34 +1000)
committerMatt Turner <mattst88@gmail.com>
Tue, 18 Aug 2015 18:34:43 +0000 (11:34 -0700)
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 <rhyskidd@gmail.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/glx/dri_common_query_renderer.c

index b3e107dc612904f862c91c9c8fa5baf6f31e293a..ebeedc9c03755fb0ab04adce0f49beb9480bf9d3 100644 (file)
@@ -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)