From: Eric Engestrom Date: Sat, 26 Oct 2019 22:51:51 +0000 (+0100) Subject: anv: fix empty-body instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=493903199cf68e8c5a57cd93253175f827499695;p=mesa.git 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 --- 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"