Mesa (master): radv: fix empty-body instruction

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Oct 27 22:15:37 UTC 2019


Module: Mesa
Branch: master
Commit: c2430f3edc545f6868757304f80ed31849d4d5d2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2430f3edc545f6868757304f80ed31849d4d5d2

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Sun Oct 27 01:04:28 2019 +0100

radv: fix empty-body instruction

Fixes: 8d43e2b2ded0fe3c82d4 ("meson: add -Werror=empty-body to disallow `if(x);`")
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/amd/vulkan/radv_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 3bfb8d11859..12f192ed200 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -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"




More information about the mesa-commit mailing list