mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-08 20:38:14 +00:00
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:
@@ -1275,7 +1275,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||
}
|
||||
}
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
/* Fall through to %d handling */
|
||||
case 'd':
|
||||
if (inttype == DO_LONGLONG) {
|
||||
Sint64 value;
|
||||
@@ -1323,13 +1323,13 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||
if (radix == 10) {
|
||||
radix = 8;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
/* Fall through to unsigned handling */
|
||||
case 'x':
|
||||
case 'X':
|
||||
if (radix == 10) {
|
||||
radix = 16;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
/* Fall through to unsigned handling */
|
||||
case 'u':
|
||||
if (inttype == DO_LONGLONG) {
|
||||
Uint64 value = 0;
|
||||
@@ -1815,7 +1815,7 @@ SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt,
|
||||
case 'p':
|
||||
case 'x':
|
||||
info.force_case = SDL_CASE_LOWER;
|
||||
SDL_FALLTHROUGH;
|
||||
/* Fall through to 'X' handling */
|
||||
case 'X':
|
||||
if (info.force_case == SDL_CASE_NOCHANGE) {
|
||||
info.force_case = SDL_CASE_UPPER;
|
||||
@@ -1826,12 +1826,12 @@ SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt,
|
||||
if (*fmt == 'p') {
|
||||
inttype = DO_LONG;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
/* Fall through to unsigned handling */
|
||||
case 'o':
|
||||
if (info.radix == 10) {
|
||||
info.radix = 8;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
/* Fall through to unsigned handling */
|
||||
case 'u':
|
||||
info.force_sign = SDL_FALSE;
|
||||
if (info.precision >= 0) {
|
||||
|
Reference in New Issue
Block a user