Use FALLTHROUGH macro instead on [[fallthrough]];

This commit is contained in:
Relintai 2022-10-09 10:14:12 +02:00
parent 8095fd84fb
commit 6f35d04ef3
2 changed files with 3 additions and 3 deletions

View File

@ -211,10 +211,10 @@ static _FORCE_INLINE_ uint32_t hash_murmur3_buffer(const void *key, int length,
switch (length & 3) { switch (length & 3) {
case 3: case 3:
k1 ^= tail[2] << 16; k1 ^= tail[2] << 16;
[[fallthrough]]; FALLTHROUGH
case 2: case 2:
k1 ^= tail[1] << 8; k1 ^= tail[1] << 8;
[[fallthrough]]; FALLTHROUGH
case 1: case 1:
k1 ^= tail[0]; k1 ^= tail[0];
k1 *= c1; k1 *= c1;

View File

@ -5460,7 +5460,7 @@ int64_t String::to_int(const CharType *p_str, int p_len, bool p_clamp) {
} else { } else {
break; break;
} }
[[fallthrough]]; FALLTHROUGH
} }
case READING_INT: { case READING_INT: {
if (is_digit(c)) { if (is_digit(c)) {