From: TimePath Date: Sun, 6 Aug 2017 08:17:25 +0000 (+1000) Subject: Remove -Wno-switch X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=786b6cf77d06f3b1c6605a38ee7074c40953f639;p=xonotic%2Fnetradiant.git Remove -Wno-switch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f68f7c30..e1ad1622 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,6 @@ addflags("-Wall") addflags("-Wextra") addflags("-pedantic") -addflags("-Wno-switch") addflags("-Wno-pedantic") addflags("-Wno-parentheses") addflags("-Wno-sign-compare") diff --git a/libs/splines/splines.cpp b/libs/splines/splines.cpp index 05cb3bf9..940b938b 100644 --- a/libs/splines/splines.cpp +++ b/libs/splines/splines.cpp @@ -653,6 +653,7 @@ void idCameraDef::buildCamera() { for ( i = 0; i < events.Num(); i++ ) { events[i]->setTriggered( false ); switch ( events[i]->getType() ) { + default: break; case idCameraEvent::EVENT_TARGET: { targets.Append( i ); break; diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 93a78739..454387bd 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -412,6 +412,7 @@ inline unsigned int buttons_for_button_and_modifiers( ButtonIdentifier button, M switch ( button.get() ) { + case ButtonEnumeration::INVALID: break; case ButtonEnumeration::LEFT: buttons |= RAD_LBUTTON; break; case ButtonEnumeration::MIDDLE: buttons |= RAD_MBUTTON; break; case ButtonEnumeration::RIGHT: buttons |= RAD_RBUTTON; break;