[Mesa-dev] [PATCH 08/21] mesa/glx: Resolve GCC sign-compare warning.
Rhys Kidd
rhyskidd at gmail.com
Sun Aug 2 23:09:09 PDT 2015
mesa/src/glx/dri_common.c: In function 'scalarEqual':
mesa/src/glx/dri_common.c:259:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(attribMap); i++)
^
Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
src/glx/dri_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 63c8de3..17c4cf5 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -254,7 +254,7 @@ static int
scalarEqual(struct glx_config *mode, unsigned int attrib, unsigned int value)
{
unsigned int glxValue;
- int i;
+ unsigned int i;
for (i = 0; i < ARRAY_SIZE(attribMap); i++)
if (attribMap[i].attrib == attrib) {
--
2.1.4
More information about the mesa-dev
mailing list