]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
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 f68f7c30da62bf5a20d9b9cb161dad750d7b0b6c..e1ad162298a406651c70d5aff7cf05d12ccef8ac 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 05cb3bf972c09d5b6723be51710b0c088f9fac5a..940b938b65f5f8e39ab743eabcf0f2f0528dacd2 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 93a78739749b9e0b73da88c8e320506f5f94bfa5..454387bd1a87e504e8f84233c27795261fa30d4f 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;