From c2259e500fa8e4ff665554d571309dbbed37fdca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 17 Feb 2017 22:21:58 -0800 Subject: [PATCH] Quiet unused-local-typedef warning that appears because of static_assert. --- include/bx/macros.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bx/macros.h b/include/bx/macros.h index 04b6d14..872a071 100644 --- a/include/bx/macros.h +++ b/include/bx/macros.h @@ -224,4 +224,7 @@ # define BX_WARN(_condition, ...) BX_NOOP() #endif // BX_CHECK +// static_assert sometimes causes unused-local-typedef... +BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG_GCC("-Wunused-local-typedef") + #endif // BX_MACROS_H_HEADER_GUARD