From 1177151b6d9312d6c72147f84261c3694aebdfaf Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 25 Sep 2019 08:49:05 +0100 Subject: [PATCH] llvmpipe: avoid generating empty-body blocks Suggested-by: Erik Faye-Lund Signed-off-by: Eric Engestrom Reviewed-by: Kristian H. Kristensen --- src/gallium/drivers/llvmpipe/lp_perf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2