Revert "Add and use SDL_FALLTHROUGH for fallthroughs"

This reverts commit 66a08aa391.

This causes problems with older compilers:
https://github.com/libsdl-org/SDL/pull/4791#issuecomment-966630997
This commit is contained in:
Sam Lantinga 2021-11-11 15:58:44 -08:00
parent 36b2690e40
commit abc12a832c
15 changed files with 55 additions and 63 deletions

View file

@ -562,7 +562,7 @@ WatchJoystick(SDL_Joystick * joystick)
if ((event.key.keysym.sym != SDLK_ESCAPE)) {
break;
}
SDL_FALLTHROUGH;
/* Fall through to signal quit */
case SDL_QUIT:
done = SDL_TRUE;
break;
@ -755,7 +755,7 @@ main(int argc, char *argv[])
if ((event.key.keysym.sym != SDLK_ESCAPE)) {
break;
}
SDL_FALLTHROUGH;
/* Fall through to signal quit */
case SDL_QUIT:
done = SDL_TRUE;
break;

View file

@ -394,7 +394,7 @@ loop(void *arg)
if (event.key.keysym.sym != SDLK_ESCAPE) {
break;
}
SDL_FALLTHROUGH;
/* Fall through to signal quit */
case SDL_QUIT:
done = SDL_TRUE;
break;

View file

@ -186,7 +186,7 @@ loop(void *arg)
(event.key.keysym.sym != SDLK_AC_BACK)) {
break;
}
SDL_FALLTHROUGH;
/* Fall through to signal quit */
case SDL_FINGERDOWN:
case SDL_MOUSEBUTTONDOWN:
case SDL_QUIT: