diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 15:11:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 15:11:07 +0300 |
commit | c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79 (patch) | |
tree | dc164a33a3732de36fcca452cc19841ed3663ff1 /src/actions/actions.cpp | |
parent | 9c6f59308ebf8d488e0949c76e7c452876fe753f (diff) | |
download | manaplus-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.gz manaplus-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.bz2 manaplus-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.xz manaplus-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.zip |
Fix issies found by gcc 6 in paranoid mode.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 644a6f645..5a461f522 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1322,14 +1322,13 @@ impHandler0(serverUnIgnoreAll) PRAGMA6(GCC diagnostic push) PRAGMA6(GCC diagnostic ignored "-Wnull-dereference") - impHandler0(error) { - const int *const ptr = nullptr; - logger->log("test %d", *ptr); + int *const ptr = nullptr; + *(ptr + 1) = 20; +// logger->log("test %d", *ptr); exit(1); } - PRAGMA6(GCC diagnostic pop) impHandler(dumpGraphics) |