瀏覽代碼

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;