From: Eric Anholt Date: Wed, 11 Feb 2015 22:40:47 +0000 (-0800) Subject: gallium/dri: Shut up a compiler warning. X-Git-Tag: upstream/17.1.0~20720 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=935ee6b652a97c1db08d999aa48eba0574e0b23e;p=platform%2Fupstream%2Fmesa.git gallium/dri: Shut up a compiler warning. The compiler doesn't see that buffers is set in the !image case and used in the !image case. Reviewed-by: Matt Turner --- diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index aecc8eb..7d65ba3 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -368,7 +368,7 @@ dri2_allocate_textures(struct dri_context *ctx, /* Image specific variables */ struct __DRIimageList images; /* Dri2 specific variables */ - __DRIbuffer *buffers; + __DRIbuffer *buffers = NULL; struct winsys_handle whandle; unsigned num_buffers = statts_count;