progs/egl: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Mon, 4 Jan 2010 05:39:20 +0000 (21:39 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 4 Jan 2010 05:39:20 +0000 (21:39 -0800)
progs/egl/eglgears.c
progs/egl/eglscreen.c

index 052d0f9e25d4987a796bfefe7eedbee5e3e1aea8..2d9b8cac7f712902824673338eb0a1e3c36c8944 100644 (file)
@@ -374,7 +374,8 @@ main(int argc, char *argv[])
        EGLint screenAttribs[10];
        EGLModeMESA mode[MAX_MODES];
        EGLScreenMESA screen;
-       EGLint count, chosenMode;
+       EGLint count;
+       EGLint chosenMode = 0;
        GLboolean printInfo = GL_FALSE;
        EGLint width = 0, height = 0;
        
index 47b3ce3366fae2ace50c159663a03f2838d65311..520f76ea036e6c0b7f6f5c0b2f74d97f38ddaf1c 100644 (file)
@@ -52,7 +52,8 @@ main(int argc, char *argv[])
        EGLint screenAttribs[10];
        EGLModeMESA mode[MAX_MODES];
        EGLScreenMESA screen;
-       EGLint count, chosenMode;
+       EGLint count;
+       EGLint chosenMode = 0;
        EGLint width = 0, height = 0;
 
        d = eglGetDisplay(EGL_DEFAULT_DISPLAY);