summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 15:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 15:11:07 +0300
commitc3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79 (patch)
treedc164a33a3732de36fcca452cc19841ed3663ff1 /src/actions
parent9c6f59308ebf8d488e0949c76e7c452876fe753f (diff)
downloadmanaverse-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.gz
manaverse-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.bz2
manaverse-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.xz
manaverse-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.zip
Fix issies found by gcc 6 in paranoid mode.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp7
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)