dri_util: make version var unsigned to silence warnings
authorBrian Paul <brianp@vmware.com>
Fri, 29 May 2015 17:28:58 +0000 (11:28 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 29 May 2015 19:36:39 +0000 (13:36 -0600)
_mesa_override_gl_version_contextless() takes an unsigned version
parameter.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/common/dri_util.c

index 2d847ef7bc879ce2b03edcc3ba2f11e20e31691c..e7ababe0b6775a7228d6c4c2f4085e54aa6d36a1 100644 (file)
@@ -164,7 +164,7 @@ driCreateNewScreen2(int scrn, int fd,
 
     struct gl_constants consts = { 0 };
     gl_api api;
-    int version;
+    unsigned version;
 
     api = API_OPENGLES2;
     if (_mesa_override_gl_version_contextless(&consts, &api, &version))