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/gui/windows/serverdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/windows/serverdialog.cpp') diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index b52793f05..b326e2f91 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -310,6 +310,8 @@ void ServerDialog::action(const ActionEvent &event) void ServerDialog::keyPressed(KeyEvent &event) { + PRAGMA("GCC diagnostic push") + PRAGMA("GCC diagnostic ignored \"-Wswitch-enum\"") switch (event.getActionId()) { case InputAction::GUI_CANCEL: @@ -354,6 +356,7 @@ void ServerDialog::keyPressed(KeyEvent &event) default: break; } + PRAGMA("GCC diagnostic pop") if (!event.isConsumed()) mServersList->keyPressed(event); } -- cgit v1.2.3-70-g09d2