summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.c
diff options
context:
space:
mode:
authorRhys Kidd <[email protected]>2015-08-06 16:34:04 +1000
committerMatt Turner <[email protected]>2015-08-18 11:34:43 -0700
commitdc7a1effc41b1fea7a7138fae942ae57ccd63d1d (patch)
treed7a8522eb2b537d70272a1fba3620a5a30d92c56 /src/glx/dri_common.c
parentf4ef8d084ce68784037d7f0b2f68d263359e0e00 (diff)
mesa/glx: Resolve GCC sign-compare warning.
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 <[email protected]> Reviewed-by: Thomas Helland <[email protected]>
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r--src/glx/dri_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 63c8de38c7c..eedcd46a15a 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -253,8 +253,7 @@ __ATTRIB(__DRI_ATTRIB_BIND_TO_TEXTURE_RGB, bindToTextureRgb),
static int
scalarEqual(struct glx_config *mode, unsigned int attrib, unsigned int value)
{
- unsigned int glxValue;
- int i;
+ unsigned glxValue, i;
for (i = 0; i < ARRAY_SIZE(attribMap); i++)
if (attribMap[i].attrib == attrib) {