From 734f0957fb8bc06ae6e5105d878f1b7007ce8b5d Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 11 Nov 2023 14:27:03 +0100 Subject: Issue #2343 - replace MOZ_FALLTHROUGH with [[fallthrough]] Basically a S&R. Removed the macro and adjusts IDL codegen accordingly. --- js/src/jsiter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/src/jsiter.cpp') diff --git a/js/src/jsiter.cpp b/js/src/jsiter.cpp index 726a84985a..9fcf449adb 100644 --- a/js/src/jsiter.cpp +++ b/js/src/jsiter.cpp @@ -523,13 +523,13 @@ Compare(T* a, T* b, size_t c) { size_t n = (c + size_t(7)) / size_t(8); switch (c % 8) { - case 0: do { if (*a++ != *b++) return false; MOZ_FALLTHROUGH; - case 7: if (*a++ != *b++) return false; MOZ_FALLTHROUGH; - case 6: if (*a++ != *b++) return false; MOZ_FALLTHROUGH; - case 5: if (*a++ != *b++) return false; MOZ_FALLTHROUGH; - case 4: if (*a++ != *b++) return false; MOZ_FALLTHROUGH; - case 3: if (*a++ != *b++) return false; MOZ_FALLTHROUGH; - case 2: if (*a++ != *b++) return false; MOZ_FALLTHROUGH; + case 0: do { if (*a++ != *b++) return false; [[fallthrough]]; + case 7: if (*a++ != *b++) return false; [[fallthrough]]; + case 6: if (*a++ != *b++) return false; [[fallthrough]]; + case 5: if (*a++ != *b++) return false; [[fallthrough]]; + case 4: if (*a++ != *b++) return false; [[fallthrough]]; + case 3: if (*a++ != *b++) return false; [[fallthrough]]; + case 2: if (*a++ != *b++) return false; [[fallthrough]]; case 1: if (*a++ != *b++) return false; } while (--n > 0); } -- cgit v1.2.3