diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-12 20:30:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-12 20:30:17 +0000 |
commit | db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032 (patch) | |
tree | 8036ebc434967a0cde3de705a16faea54d117bfd /js/src/jsiter.cpp | |
parent | c789882a294d29b3e5450a972ad67c4839c75e23 (diff) | |
parent | 9c75c8235e13e0f8309b11fa138253350bce0dd5 (diff) | |
download | uxp-db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032.tar.gz |
Merge pull request 'Replace MOZ_FALLTHROUGH with [[fallthrough]]' (#2379) from 2343-fallthrough-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2379
Diffstat (limited to 'js/src/jsiter.cpp')
-rw-r--r-- | js/src/jsiter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |