From c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Apr 2016 15:11:07 +0300 Subject: Fix issies found by gcc 6 in paranoid mode. --- src/actions/actions.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/actions') 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) -- cgit v1.2.3-60-g2f50