From: Grazvydas Ignotas Date: Sat, 10 Dec 2016 19:10:47 +0000 (+0200) Subject: softpipe: fix release build unused variable warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15e12ab8fc06dabe8ef5d1704fe09b966f9d124b;p=mesa.git softpipe: fix release build unused variable warning Signed-off-by: Grazvydas Ignotas Signed-off-by: Marek Olšák --- diff --git a/src/gallium/drivers/softpipe/sp_state_shader.c b/src/gallium/drivers/softpipe/sp_state_shader.c index a7456628d80..b2eda244268 100644 --- a/src/gallium/drivers/softpipe/sp_state_shader.c +++ b/src/gallium/drivers/softpipe/sp_state_shader.c @@ -420,7 +420,7 @@ static void softpipe_delete_compute_state(struct pipe_context *pipe, void *cs) { - struct softpipe_context *softpipe = softpipe_context(pipe); + MAYBE_UNUSED struct softpipe_context *softpipe = softpipe_context(pipe); struct sp_compute_shader *state = (struct sp_compute_shader *)cs; assert(softpipe->cs != state);