From 6849c5919c02b4cf97de91c801b542e36eb089ce Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Dec 2015 22:45:06 +0300 Subject: Add pragmas for prevent warnings about unused constants in simple types. --- 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 c005e47d8..28d6ab5bc 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -116,8 +116,14 @@ #ifdef ADVGCC #define const2 const +#if GCC_VERSION >= 60000 +#define PRAGMA6(str) _Pragma(str) +#else // GCC_VERSION > 60000 +#define PRAGMA6(str) +#endif // GCC_VERSION > 60000 #else // ADVGCC #define const2 +#define PRAGMA6(str) #endif // ADVGCC #ifdef __GNUC__ -- cgit v1.2.3-60-g2f50