diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2020-10-03 06:32:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-03 12:35:40 +0200 |
commit | 4e86c34ef0d1d227309f8e8d22be5ea737830c24 (patch) | |
tree | f8c046bfccf638357060a27b86082a1753f11101 /Libraries | |
parent | 9dee140a9f3bc1c674ca32fd34d3eb7085e2f5d8 (diff) | |
download | serenity-4e86c34ef0d1d227309f8e8d22be5ea737830c24.zip |
LibC: Remove unnecessary fallthrough comments.
A "fallthrough comment" or `[[fallthrough]]` is only required after
non-empty `case`s.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/stdlib.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Libraries/LibC/stdlib.cpp b/Libraries/LibC/stdlib.cpp index 319c6672fb..2adcba1d44 100644 --- a/Libraries/LibC/stdlib.cpp +++ b/Libraries/LibC/stdlib.cpp @@ -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; |