From: Eric Engestrom Date: Thu, 31 Oct 2019 01:26:05 +0000 (+0000) Subject: nine: fix empty-body-issues X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff3a2576a45e012b1cd8fbf73b9967083d6fce0e;p=mesa.git nine: fix empty-body-issues Signed-off-by: Eric Engestrom Fixes: 8d43e2b2ded0fe3c82d4 ("meson: add -Werror=empty-body to disallow `if(x);`") Reviewed-By: Timur Kristóf --- diff --git a/src/gallium/state_trackers/nine/nine_debug.h b/src/gallium/state_trackers/nine/nine_debug.h index 905568d0d17..5ecc37a6f5a 100644 --- a/src/gallium/state_trackers/nine/nine_debug.h +++ b/src/gallium/state_trackers/nine/nine_debug.h @@ -116,7 +116,7 @@ _nine_stub( const char *file, #define user_warn(x) \ if ((x)) { DBG_FLAG(DBG_USER, "User warning: `%s'\n", #x); } #else -#define user_warn(x) +#define user_warn(x) do {} while(0) #endif /* nonfatal assert */