From 6f35d04ef370750c0753c0b8a9613e7b8dfca3b6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 9 Oct 2022 10:14:12 +0200 Subject: [PATCH] Use FALLTHROUGH macro instead on [[fallthrough]]; --- core/containers/hashfuncs.h | 4 ++-- core/string/ustring.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/containers/hashfuncs.h b/core/containers/hashfuncs.h index d66f4ca4e..e66be7a7b 100644 --- a/core/containers/hashfuncs.h +++ b/core/containers/hashfuncs.h @@ -211,10 +211,10 @@ static _FORCE_INLINE_ uint32_t hash_murmur3_buffer(const void *key, int length, switch (length & 3) { case 3: k1 ^= tail[2] << 16; - [[fallthrough]]; + FALLTHROUGH case 2: k1 ^= tail[1] << 8; - [[fallthrough]]; + FALLTHROUGH case 1: k1 ^= tail[0]; k1 *= c1; diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index f6cc98931..e78a59baa 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -5460,7 +5460,7 @@ int64_t String::to_int(const CharType *p_str, int p_len, bool p_clamp) { } else { break; } - [[fallthrough]]; + FALLTHROUGH } case READING_INT: { if (is_digit(c)) {