Skip to content

Commit

Permalink
fix fallthrough warning
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Dec 30, 2024
1 parent 0d4f819 commit 96ad95a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/hybrid_font.h
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ class HybridFont : public SaberBase, public Looper {
break;
case OFF_FAST:
SFX_in.SetFollowing(nullptr);
[[gnu::fallthrough]];
case OFF_NORMAL:
if (!SFX_in) {
size_t total = SFX_poweroff.files_found() + SFX_pwroff.files_found();
Expand Down Expand Up @@ -556,6 +557,7 @@ class HybridFont : public SaberBase, public Looper {
case EFFECT_STAB:
if (SFX_stab) { PlayCommon(&SFX_stab); return; }
// If no stab sounds are found, fall through to clash
[[gnu::fallthrough]];
case EFFECT_CLASH: Play(&SFX_clash, &SFX_clsh); return;
case EFFECT_FORCE: PlayCommon(&SFX_force); return;
case EFFECT_BLAST: Play(&SFX_blaster, &SFX_blst); return;
Expand Down

0 comments on commit 96ad95a

Please sign in to comment.