From: Eric Engestrom Date: Wed, 25 Sep 2019 07:49:05 +0000 (+0100) Subject: llvmpipe: avoid generating empty-body blocks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1177151b6d9312d6c72147f84261c3694aebdfaf;p=mesa.git llvmpipe: avoid generating empty-body blocks Suggested-by: Erik Faye-Lund Signed-off-by: Eric Engestrom Reviewed-by: Kristian H. Kristensen --- diff --git a/src/gallium/drivers/llvmpipe/lp_perf.h b/src/gallium/drivers/llvmpipe/lp_perf.h index 455adf7d6f8..ace85c7fef4 100644 --- a/src/gallium/drivers/llvmpipe/lp_perf.h +++ b/src/gallium/drivers/llvmpipe/lp_perf.h @@ -74,7 +74,7 @@ extern struct lp_counters lp_count; #define LP_COUNT_ADD(counter, incr) lp_count.counter += (incr) #define LP_COUNT_GET(counter) (lp_count.counter) #else -#define LP_COUNT(counter) +#define LP_COUNT(counter) do {} while (0) #define LP_COUNT_ADD(counter, incr) (void)(incr) #define LP_COUNT_GET(counter) 0 #endif