Просмотр исходного кода

main: Silence [[fallthrough]] warning

Morph 6 лет назад
Родитель
Сommit
f78e44762a
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/yuzu/main.cpp

+ 2 - 3
src/yuzu/main.cpp

@@ -1421,11 +1421,10 @@ void GMainWindow::OnGameListRemoveInstalledEntry(u64 program_id, InstalledEntryT
         [[fallthrough]];
     case InstalledEntryType::Update:
         RemoveUpdateContent(program_id, entry_type);
-        if (type == InstalledEntryType::Game) {
-            [[fallthrough]];
-        } else {
+        if (type != InstalledEntryType::Game) {
             break;
         }
+        [[fallthrough]];
     case InstalledEntryType::AddOnContent:
         RemoveAddOnContent(program_id, entry_type);
         break;