diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-13 22:45:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-13 22:45:06 +0300 |
commit | 6849c5919c02b4cf97de91c801b542e36eb089ce (patch) | |
tree | e5e693931887a06f2e4a75099753f3012cd8be57 /src/localconsts.h | |
parent | 8a7279daea883f86c2a500c368d252394faeea5b (diff) | |
download | manaplus-6849c5919c02b4cf97de91c801b542e36eb089ce.tar.gz manaplus-6849c5919c02b4cf97de91c801b542e36eb089ce.tar.bz2 manaplus-6849c5919c02b4cf97de91c801b542e36eb089ce.tar.xz manaplus-6849c5919c02b4cf97de91c801b542e36eb089ce.zip |
Add pragmas for prevent warnings about unused constants in simple types.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 6 |
1 files changed, 6 insertions, 0 deletions
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__ |