소스 검색

main: Silence [[fallthrough]] warning

Morph 6 년 전
부모
커밋
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;