# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1508542197 -7200
# Node ID 1a393a59a594d4f5651a8e8841fc939a30e06060
# Parent  d47ab924525951b133306aa8536917260d63deb7
Fix GCC warnings: -Wimplicit-fallthrough and -Wint-in-bool-context

diff -r d47ab9245259 -r 1a393a59a594 QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Sat Oct 21 00:58:01 2017 +0200
+++ b/QTfrontend/hwform.cpp	Sat Oct 21 01:29:57 2017 +0200
@@ -386,7 +386,7 @@
         setWindowState(windowState() | Qt::WindowFullScreen);
     else
     {
-        setWindowState(windowState() & static_cast<int>(!Qt::WindowFullScreen));
+        setWindowState(windowState() & ~Qt::WindowFullScreen);
     }
 }
 
@@ -1296,7 +1296,7 @@
     {
         case ID_PAGE_INGAME:
             MessageDialog::ShowErrorMessage(errmsg, this);
-            // no break
+            /* fallthrough */
         case ID_PAGE_NETGAME:
             ui.pageNetGame->displayError(errmsg);
             break;