From 7e5bca3dfd341c6a73b33f3b748c84779f895d77 Mon Sep 17 00:00:00 2001 From: Akash Date: Mon, 22 Aug 2016 22:11:30 +0530 Subject: [PATCH] Counters: Make the code behavior more explicit CID 168623 (#1 of 1): Missing break in switch (MISSING_BREAK)unterminated_case: The case for value GS_VideoMode::Unknown is not terminated by a 'break' statement. --- pcsx2/Counters.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcsx2/Counters.cpp b/pcsx2/Counters.cpp index acfc712d0e..37dc7596e4 100644 --- a/pcsx2/Counters.cpp +++ b/pcsx2/Counters.cpp @@ -335,14 +335,13 @@ u32 UpdateVSyncRate() scanlines = SCANLINES_TOTAL_NTSC; break; - // Falls through to unknown when unidentified mode parameter of SetGsCrt is detected. case GS_VideoMode::Unknown: + default: + // Falls through to default when unidentified mode parameter of SetGsCrt is detected. // For Release builds, keep using the NTSC timing values when unknown video mode is detected. // Assert will be triggered for debug/dev builds. scanlines = SCANLINES_TOTAL_NTSC; Console.Error("PCSX2-Counters: Unknown video mode detected"); - - default: pxAssertDev(false , "Unknown video mode detected via SetGsCrt"); }