Remove -Wno-switch
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 6 Aug 2017 08:17:25 +0000 (18:17 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 6 Aug 2017 08:17:25 +0000 (18:17 +1000)
CMakeLists.txt
libs/splines/splines.cpp
radiant/xywindow.cpp

index f68f7c3..e1ad162 100644 (file)
@@ -87,7 +87,6 @@ addflags("-Wall")
 addflags("-Wextra")
 addflags("-pedantic")
 
-addflags("-Wno-switch")
 addflags("-Wno-pedantic")
 addflags("-Wno-parentheses")
 addflags("-Wno-sign-compare")
index 05cb3bf..940b938 100644 (file)
@@ -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;
index 93a7873..454387b 100644 (file)
@@ -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;