Re: [Piglit] [PATCH] gl-1.0-blend-func: Fix GCC maybe-uninitialized warnings.

2015-01-07 Thread Brian Paul
On 01/06/2015 05:28 PM, Vinson Lee wrote: blend.c: In function 'run_factor_set': blend.c:503:42: warning: 'df[3]' may be used uninitialized in this function [-Wmaybe-uninitialized] dst[3] = CLAMP(src[3] * sf[3] + dst[3] * df[3], 0.0f, 1.0f); ^ blend

[Piglit] [PATCH] gl-1.0-blend-func: Fix GCC maybe-uninitialized warnings.

2015-01-06 Thread Vinson Lee
blend.c: In function 'run_factor_set': blend.c:503:42: warning: 'df[3]' may be used uninitialized in this function [-Wmaybe-uninitialized] dst[3] = CLAMP(src[3] * sf[3] + dst[3] * df[3], 0.0f, 1.0f); ^ blend.c:255:15: note: 'df[3]' was declared here f