From d2a2787783bd0f495516529e054aa86e9bbeb8c1 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 28 Mar 2023 19:24:33 +0200 Subject: [PATCH] Fix remaining -Wimplicit-fallthrough warnings --- test/testautomation_audio.c | 3 +-- test/testoverlay2.c | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testautomation_audio.c b/test/testautomation_audio.c index 97df178bc..bd586314f 100644 --- a/test/testautomation_audio.c +++ b/test/testautomation_audio.c @@ -174,7 +174,7 @@ int audio_initOpenCloseQuitAudio() desired.samples = 4096; desired.callback = _audio_testCallback; desired.userdata = NULL; - + break; case 1: /* Set custom desired spec */ desired.freq = 48000; @@ -264,7 +264,6 @@ int audio_pauseUnpauseAudio() desired.callback = _audio_testCallback; desired.userdata = NULL; break; - case 1: /* Set custom desired spec */ desired.freq = 48000; diff --git a/test/testoverlay2.c b/test/testoverlay2.c index 0f194d375..a5dba6863 100644 --- a/test/testoverlay2.c +++ b/test/testoverlay2.c @@ -209,6 +209,7 @@ void loop() if (event.key.keysym.sym != SDLK_ESCAPE) { break; } + SDL_FALLTHROUGH; case SDL_QUIT: done = SDL_TRUE; break;