mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibC: Remove unnecessary fallthrough comments.
A "fallthrough comment" or `[[fallthrough]]` is only required after non-empty `case`s.
This commit is contained in:
parent
9dee140a9f
commit
4e86c34ef0
Notes:
sideshowbarker
2024-07-19 02:05:31 +09:00
Author: https://github.com/emanuele6 Commit: https://github.com/SerenityOS/serenity/commit/4e86c34ef0d Pull-request: https://github.com/SerenityOS/serenity/pull/3671
1 changed files with 2 additions and 4 deletions
|
@ -452,7 +452,6 @@ double strtod(const char* str, char** endptr)
|
|||
digits_usable = true;
|
||||
break;
|
||||
case DigitConsumeDecision::PosOverflow:
|
||||
// fallthrough
|
||||
case DigitConsumeDecision::NegOverflow:
|
||||
is_a_digit = true;
|
||||
digits_overflow = true;
|
||||
|
@ -509,7 +508,6 @@ double strtod(const char* str, char** endptr)
|
|||
exponent_usable = true;
|
||||
break;
|
||||
case DigitConsumeDecision::PosOverflow:
|
||||
// fallthrough
|
||||
case DigitConsumeDecision::NegOverflow:
|
||||
is_a_digit = true;
|
||||
exponent_overflow = true;
|
||||
|
@ -901,7 +899,7 @@ long long strtoll(const char* str, char** endptr, int base)
|
|||
// The very first actual digit must pass here:
|
||||
digits_usable = true;
|
||||
break;
|
||||
case DigitConsumeDecision::PosOverflow: // fall-through
|
||||
case DigitConsumeDecision::PosOverflow:
|
||||
case DigitConsumeDecision::NegOverflow:
|
||||
is_a_digit = true;
|
||||
overflow = true;
|
||||
|
@ -977,7 +975,7 @@ unsigned long long strtoull(const char* str, char** endptr, int base)
|
|||
// The very first actual digit must pass here:
|
||||
digits_usable = true;
|
||||
break;
|
||||
case DigitConsumeDecision::PosOverflow: // fall-through
|
||||
case DigitConsumeDecision::PosOverflow:
|
||||
case DigitConsumeDecision::NegOverflow:
|
||||
is_a_digit = true;
|
||||
overflow = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue