radv: fix empty-body instruction
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 27 Oct 2019 00:04:28 +0000 (01:04 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Sun, 27 Oct 2019 22:10:31 +0000 (22:10 +0000)
Fixes: 8d43e2b2ded0fe3c82d4 ("meson: add -Werror=empty-body to disallow `if(x);`")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/amd/vulkan/radv_private.h

index 3bfb8d11859f185afd3ebece5ae51bdcbcdc54db..12f192ed200ccb442158ca177e2219bd034014f8 100644 (file)
@@ -40,7 +40,7 @@
 #include <memcheck.h>
 #define VG(x) x
 #else
-#define VG(x)
+#define VG(x) ((void)0)
 #endif
 
 #include "c11/threads.h"