nine: fix empty-body-issues
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 31 Oct 2019 01:26:05 +0000 (01:26 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 27 Dec 2019 22:09:16 +0000 (22:09 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 8d43e2b2ded0fe3c82d4 ("meson: add -Werror=empty-body to disallow `if(x);`")
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
src/gallium/state_trackers/nine/nine_debug.h

index 905568d0d1771812462d0304e7848281902dc2df..5ecc37a6f5a31a70269062188b643f7717d9e6ba 100644 (file)
@@ -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 */