From: Vinson Lee Date: Fri, 20 Aug 2010 00:07:28 +0000 (-0700) Subject: mesa: Silence uninitialized variable warnings in dummy_enum_func. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48dca27e33b333ee7ed16287a348db16eef02ac1;p=mesa.git mesa: Silence uninitialized variable warnings in dummy_enum_func. --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index b01fed1781e..6205d3456a4 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -339,16 +339,16 @@ _mesa_destroy_visual( GLvisual *vis ) static void dummy_enum_func(void) { - gl_buffer_index bi; - gl_colortable_index ci; - gl_face_index fi; - gl_frag_attrib fa; - gl_frag_result fr; - gl_texture_index ti; - gl_vert_attrib va; - gl_vert_result vr; - gl_geom_attrib ga; - gl_geom_result gr; + gl_buffer_index bi = BUFFER_FRONT_LEFT; + gl_colortable_index ci = COLORTABLE_PRECONVOLUTION; + gl_face_index fi = FACE_POS_X; + gl_frag_attrib fa = FRAG_ATTRIB_WPOS; + gl_frag_result fr = FRAG_RESULT_DEPTH; + gl_texture_index ti = TEXTURE_2D_ARRAY_INDEX; + gl_vert_attrib va = VERT_ATTRIB_POS; + gl_vert_result vr = VERT_RESULT_HPOS; + gl_geom_attrib ga = GEOM_ATTRIB_POSITION; + gl_geom_result gr = GEOM_RESULT_POS; (void) bi; (void) ci;