Re: [Mesa-dev] [PATCH] Fix warnings.

2016-05-29 Thread Vedran Miletic
On 05/29/2016 01:54 PM, Romain Failliot wrote: Can now compile with -Werror. Fixed -Wunused-variable, -Wunused-but-set-variable, -Wmaybe-uninitialized and -Wunused-function. To prevent warnings for variables only used in asserts, I void them right after the call to assert(). The changes look

[Mesa-dev] [PATCH] Fix warnings.

2016-05-29 Thread Romain Failliot
Can now compile with -Werror. Fixed -Wunused-variable, -Wunused-but-set-variable, -Wmaybe-uninitialized and -Wunused-function. To prevent warnings for variables only used in asserts, I void them right after the call to assert(). --- src/compiler/spirv/vtn_variables.c | 1 + src/galli