summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-15 18:00:53 +0900
committerKeith Packard <keithp@keithp.com>2014-01-27 11:34:02 -0800
commit9e45a1a030a5e70318441f33a132269a19a43df5 (patch)
tree73fc0ec540a51239e1ca88f5d8ca31ddea19d58f /glx
parentc1ce807d9f18f215332d7eeb844e8c640f71c53c (diff)
Warning fixes in glx
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'glx')
-rw-r--r--glx/glxdri2.c2
-rw-r--r--glx/glxdricommon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 8c1058613..5d1a45bff 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -461,7 +461,7 @@ create_driver_context(__GLXDRIcontext * context,
unsigned dri_err = 0;
unsigned major_ver;
unsigned minor_ver;
- uint32_t flags;
+ uint32_t flags = 0;
int reset;
int api = __DRI_API_OPENGL;
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index fc902729d..69d4b297e 100644
--- a/glx/glxdricommon.c
+++ b/glx/glxdricommon.c
@@ -226,7 +226,7 @@ glxConvertConfigs(const __DRIcoreExtension * core,
}
for (i = 0; configs[i]; i++) {
- int renderType = 0;
+ unsigned int renderType = 0;
if (core->getConfigAttrib(configs[i], __DRI_ATTRIB_RENDER_TYPE,
&renderType)) {
if (render_type_is_pbuffer_only(renderType) &&