summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-13 22:45:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-13 22:45:06 +0300
commit6849c5919c02b4cf97de91c801b542e36eb089ce (patch)
treee5e693931887a06f2e4a75099753f3012cd8be57 /src/localconsts.h
parent8a7279daea883f86c2a500c368d252394faeea5b (diff)
downloadmanaverse-6849c5919c02b4cf97de91c801b542e36eb089ce.tar.gz
manaverse-6849c5919c02b4cf97de91c801b542e36eb089ce.tar.bz2
manaverse-6849c5919c02b4cf97de91c801b542e36eb089ce.tar.xz
manaverse-6849c5919c02b4cf97de91c801b542e36eb089ce.zip
Add pragmas for prevent warnings about unused constants in simple types.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h6
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__