From: Axel Davy Date: Sun, 16 Aug 2015 10:58:41 +0000 (+0200) Subject: st/nine: Silent warning in NineCubeTexture9_ctor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d48cab9fa6b75db054e3a53819b465611923e9bc;p=mesa.git st/nine: Silent warning in NineCubeTexture9_ctor The compiler was complaining the value may be uninitialised when it is used (which is wrong). Initialize to NULL to silent the warning. --- diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c index a2bb9b9512f..abba2637946 100644 --- a/src/gallium/state_trackers/nine/cubetexture9.c +++ b/src/gallium/state_trackers/nine/cubetexture9.c @@ -43,7 +43,7 @@ NineCubeTexture9_ctor( struct NineCubeTexture9 *This, struct pipe_screen *screen = pParams->device->screen; enum pipe_format pf; unsigned i, l, f, offset, face_size = 0; - unsigned *level_offsets; + unsigned *level_offsets = NULL; D3DSURFACE_DESC sfdesc; void *p; HRESULT hr;