From 9e45a1a030a5e70318441f33a132269a19a43df5 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 15 Nov 2013 18:00:53 +0900 Subject: Warning fixes in glx Signed-off-by: Keith Packard Reviewed-by: Eric Anholt --- glx/glxdri2.c | 2 +- glx/glxdricommon.c | 2 +- 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) && -- cgit v1.2.3