i965: Silence warning.
authorMatt Turner <mattst88@gmail.com>
Fri, 13 Nov 2015 20:13:14 +0000 (12:13 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 13 Nov 2015 20:13:14 +0000 (12:13 -0800)
commit386759b02dac1382072cecef4d6520a0770f995e
treeb3038b253c2a51cc0d921b431a5f5ff840781f88
parent8b145d6a3de381a568d8001131e48257611a542a
i965: Silence warning.

intel_asm_annotation.c: In function ‘annotation_insert_error’:
intel_asm_annotation.c:214:18:
warning: ‘ann’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
       ann->error = ralloc_strdup(annotation->mem_ctx, error);
                         ^

I initially tried changing the type of ann_count to unsigned (is
currently int), since that in addition to the check that it's non-zero
at the beginning of the function seems sufficient to prove that it must
be greater than zero. Unfortunately that wasn't sufficient.
src/mesa/drivers/dri/i965/intel_asm_annotation.c