summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/actions
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-12-18 16:18:46 +0100
committerjak1 <mike.wollmann@gmail.com>2021-12-18 16:18:46 +0100
commit66501994d31c6e44e1c5210af09a3c5973a7ccc9 (patch)
treedcac907a1195c6d73a33f00f69ba732627d8c2eb /src/progs/manaplus/actions
parent96f62b9e3f52302cbaec6c11eeb10e3e3b3b9fae (diff)
downloadplus-66501994d31c6e44e1c5210af09a3c5973a7ccc9.tar.gz
plus-66501994d31c6e44e1c5210af09a3c5973a7ccc9.tar.bz2
plus-66501994d31c6e44e1c5210af09a3c5973a7ccc9.tar.xz
plus-66501994d31c6e44e1c5210af09a3c5973a7ccc9.zip
added diagnostic ignore -Warray-bounds to gcc-snapshot (gcc11+ bug)
Diffstat (limited to 'src/progs/manaplus/actions')
-rw-r--r--src/progs/manaplus/actions/actions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp
index 52eca62d9..92c0f0050 100644
--- a/src/progs/manaplus/actions/actions.cpp
+++ b/src/progs/manaplus/actions/actions.cpp
@@ -1456,6 +1456,8 @@ impHandler0(serverUnIgnoreAll)
PRAGMA6(GCC diagnostic push)
PRAGMA6(GCC diagnostic ignored "-Wnull-dereference")
+PRAGMA11(GCC diagnostic push)
+PRAGMA11(GCC diagnostic ignored "-Warray-bounds")
impHandler0(error)
{
int *const ptr = nullptr;
@@ -1463,6 +1465,7 @@ impHandler0(error)
// logger->log("test %d", *ptr);
exit(1);
}
+PRAGMA11(GCC diagnostic pop)
PRAGMA6(GCC diagnostic pop)
impHandler(dumpGraphics)