From 493903199cf68e8c5a57cd93253175f827499695 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 26 Oct 2019 23:51:51 +0100 Subject: [PATCH] anv: fix empty-body instruction Fixes: 8d43e2b2ded0fe3c82d4 ("meson: add -Werror=empty-body to disallow `if(x);`") Signed-off-by: Eric Engestrom Reviewed-by: Jordan Justen Reviewed-by: Jason Ekstrand --- 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" -- 2.30.2