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

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


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

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Sat Oct 26 23:51:51 2019 +0100

anv: 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/intel/vulkan/anv_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index aa1f2cbea87..30f1da39425 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -40,7 +40,7 @@
 #define __gen_validate_value(x) VALGRIND_CHECK_MEM_IS_DEFINED(&(x), sizeof(x))
 #endif
 #else
-#define VG(x)
+#define VG(x) ((void)0)
 #endif
 
 #include "common/gen_clflush.h"




More information about the mesa-commit mailing list