Mesa (master): glx: init screen = 0 to fix optimized build warning

Brian Paul brianp at kemper.freedesktop.org
Fri Mar 15 00:15:14 UTC 2013


Module: Mesa
Branch: master
Commit: 622b1fcc186190971102f438118b657a47fb406e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=622b1fcc186190971102f438118b657a47fb406e

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Mar 13 08:35:21 2013 -0600

glx: init screen = 0 to fix optimized build warning

---

 src/glx/glxcmds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 8874e3b..7b62be3 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -1375,7 +1375,7 @@ glXImportContextEXT(Display *dpy, GLXContextID contextID)
    struct glx_config *mode;
    uint32_t fbconfigID = 0;
    uint32_t visualID = 0;
-   uint32_t screen;
+   uint32_t screen = 0;
    Bool got_screen = False;
 
    /* The GLX_EXT_import_context spec says:




More information about the mesa-commit mailing list