Explorar o código

am/controller: Remove [[fallthrough]] from unreachable path

Prevents warnings on clang 12. This path is reachable on other
variations of the build that disable the unreachable macro.
Lioncash %!s(int64=5) %!d(string=hai) anos
pai
achega
1dab8acf5f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/core/hle/service/am/applets/controller.cpp

+ 2 - 1
src/core/hle/service/am/applets/controller.cpp

@@ -211,7 +211,8 @@ void Controller::Execute() {
     case ControllerSupportMode::ShowControllerFirmwareUpdate:
         UNIMPLEMENTED_MSG("ControllerSupportMode={} is not implemented",
                           controller_private_arg.mode);
-        [[fallthrough]];
+        ConfigurationComplete();
+        break;
     default: {
         ConfigurationComplete();
         break;