From: Brian Paul Date: Thu, 3 Sep 2009 21:04:49 +0000 (-0600) Subject: st/mesa: silence uninitialized var warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a8e1ddf193bb25c5cf05b70088c64ede772d7e9;p=mesa.git st/mesa: silence uninitialized var warnings --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 74602b4caea..abaf9d2c353 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -517,9 +517,9 @@ st_TexImage(GLcontext * ctx, struct st_texture_image *stImage = st_texture_image(texImage); GLint postConvWidth, postConvHeight; GLint texelBytes, sizeInBytes; - GLuint dstRowStride; + GLuint dstRowStride = 0; struct gl_pixelstore_attrib unpackNB; - enum pipe_transfer_usage transfer_usage; + enum pipe_transfer_usage transfer_usage = 0; DBG("%s target %s level %d %dx%dx%d border %d\n", __FUNCTION__, _mesa_lookup_enum_by_nr(target), level, width, height, depth, border);