From: Emil Velikov <emil.veli...@collabora.com> Use the generic construct instead of the currect GCC specific one.
Cc: Kenneth Graunke <kenn...@whitecape.org> Suggested-by: Kenneth Graunke <kenn...@whitecape.org> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- src/intel/vulkan/anv_private.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 2fc543d..edc008d 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -207,13 +207,14 @@ void anv_loge_v(const char *format, va_list va); /** * Print a FINISHME message, including its source location. */ -#define anv_finishme(format, ...) ({ \ - static bool reported = false; \ - if (!reported) { \ - __anv_finishme(__FILE__, __LINE__, format, ##__VA_ARGS__); \ - reported = true; \ - } \ -}) +#define anv_finishme(format, ...) \ + do { \ + static bool reported = false; \ + if (!reported) { \ + __anv_finishme(__FILE__, __LINE__, format, ##__VA_ARGS__); \ + reported = true; \ + } \ + } while (0) /* A non-fatal assert. Useful for debugging. */ #ifdef DEBUG -- 2.10.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev