[Mesa-dev] [PATCH] i965: Silece usused variable warning in release build

Kenneth Graunke kenneth at whitecape.org
Tue Aug 27 17:19:51 PDT 2013


On 08/27/2013 03:11 PM, Chad Versace wrote:
> Use `(void) success;` to silence this warning:
>
>    i965/brw_vs.c:481:12:
>    warning: unused variable 'success' [-Wunused-variable]
>           bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram,
>
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>

Typo in commit title (Silece -> Silence), otherwise, this is at least 
better than it was.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

We might want to come up with a better strategy for failing to compile, 
but...someday.

--Ken



More information about the mesa-dev mailing list