From 66501994d31c6e44e1c5210af09a3c5973a7ccc9 Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 18 Dec 2021 16:18:46 +0100 Subject: added diagnostic ignore -Warray-bounds to gcc-snapshot (gcc11+ bug) --- src/localconsts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index c8ac23e46..dc3afad6e 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -210,6 +210,12 @@ #define PRAGMA8(str) #endif // GCC_VERSION > 80000 +#if GCC_VERSION >= 110000 +#define PRAGMA11(str) _Pragma(#str) +#else // GCC_VERSION > 110000 +#define PRAGMA11(str) +#endif // GCC_VERSION > 110000 + #ifdef __clang__ #define PRAGMACLANG(str) _Pragma(#str) #if CLANG_VERSION >= 50000 -- cgit v1.2.3-60-g2f50