Ver Fonte

Fix remaining -Wimplicit-fallthrough warnings

Anonymous Maarten há 2 anos atrás
pai
commit
d2a2787783
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 2
      test/testautomation_audio.c
  2. 1 0
      test/testoverlay2.c

+ 1 - 2
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;

+ 1 - 0
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;