From 856aad9aea556aafd2ddd9645352b81f4cd2af53 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Feb 2016 14:57:20 +0300 Subject: Add pragmas for disable -Wswitch-bool in some places. --- src/being/localplayer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/being/localplayer.cpp') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 30d629852..0afb36b42 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1162,6 +1162,8 @@ void LocalPlayer::attributeChanged(const AttributesT id, const int oldVal, const int newVal) { + PRAGMA("GCC diagnostic push") + PRAGMA("GCC diagnostic ignored \"-Wswitch-enum\"") switch (id) { case Attributes::EXP: @@ -1185,6 +1187,7 @@ void LocalPlayer::attributeChanged(const AttributesT id, default: break; } + PRAGMA("GCC diagnostic pop") } void LocalPlayer::move(const int dX, const int dY) -- cgit v1.2.3-60-g2f50