[Mesa-dev] [PATCH 09/21] mesa/glx: Resolve GCC sign-compare warning.
Rhys Kidd
rhyskidd at gmail.com
Sun Aug 2 23:09:10 PDT 2015
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 at gmail.com>
---
src/glx/dri_common_query_renderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glx/dri_common_query_renderer.c b/src/glx/dri_common_query_renderer.c
index b3e107d..2e7e12c 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 int i;
for (i = 0; i < ARRAY_SIZE(query_renderer_map); i++)
if (query_renderer_map[i].glx_attrib == attribute)
--
2.1.4
More information about the mesa-dev
mailing list