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/widgets/textbox.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/textbox.cpp') diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index d1c10be67..abb03a1ca 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -257,6 +257,8 @@ void TextBox::keyPressed(KeyEvent& event) const Key &key = event.getKey(); const InputActionT action = event.getActionId(); + PRAGMA("GCC diagnostic push") + PRAGMA("GCC diagnostic ignored \"-Wswitch-enum\"") switch (action) { case InputAction::GUI_LEFT: @@ -430,6 +432,7 @@ void TextBox::keyPressed(KeyEvent& event) break; } } + PRAGMA("GCC diagnostic pop") adjustSize(); scrollToCaret(); -- cgit v1.2.3-70-g09d2