diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-10 20:50:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-10 20:50:58 +0300 |
commit | c3ee1ba31f16d8d5d8f0f6e6a68dc1e5b12bad31 (patch) | |
tree | d20351ce86a5418b15560091a290d9d6637d7888 | |
parent | 9d6dc25b1fb70e4ca19a0664ba307792c9d3c252 (diff) | |
download | manaverse-c3ee1ba31f16d8d5d8f0f6e6a68dc1e5b12bad31.tar.gz manaverse-c3ee1ba31f16d8d5d8f0f6e6a68dc1e5b12bad31.tar.bz2 manaverse-c3ee1ba31f16d8d5d8f0f6e6a68dc1e5b12bad31.tar.xz manaverse-c3ee1ba31f16d8d5d8f0f6e6a68dc1e5b12bad31.zip |
Add warning exception for gcc 6.
-rw-r--r-- | src/actions/actions.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 639894d9a..4e98517a1 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1319,6 +1319,9 @@ impHandler0(serverUnIgnoreAll) return true; } +PRAGMA6(GCC diagnostic push) +PRAGMA6(GCC diagnostic ignored "-Wnull-dereference") + impHandler0(error) { const int *const ptr = nullptr; @@ -1326,6 +1329,8 @@ impHandler0(error) exit(1); } +PRAGMA6(GCC diagnostic pop) + impHandler(dumpGraphics) { std::string str = strprintf("%s,%s,%dX%dX%d,", PACKAGE_OS, SMALL_VERSION, |