summaryrefslogtreecommitdiff
path: root/js/src/jsstr.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-12 20:30:17 +0000
committerMoonchild <moonchild@palemoon.org>2023-11-12 20:30:17 +0000
commitdb4ddc5f6855fdd89cf2af9090f78fb7ebb7f032 (patch)
tree8036ebc434967a0cde3de705a16faea54d117bfd /js/src/jsstr.cpp
parentc789882a294d29b3e5450a972ad67c4839c75e23 (diff)
parent9c75c8235e13e0f8309b11fa138253350bce0dd5 (diff)
downloaduxp-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/jsstr.cpp')
-rw-r--r--js/src/jsstr.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp
index c539141130..f56fae9dd3 100644
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -1613,13 +1613,13 @@ FirstCharMatcherUnrolled(const TextChar* text, uint32_t n, const PatChar pat)
const TextChar* t = text;
switch ((textend - t) & 7) {
- case 0: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
- case 7: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
- case 6: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
- case 5: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
- case 4: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
- case 3: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
- case 2: if (*t++ == pat) return t - 1; MOZ_FALLTHROUGH;
+ case 0: if (*t++ == pat) return t - 1; [[fallthrough]];
+ case 7: if (*t++ == pat) return t - 1; [[fallthrough]];
+ case 6: if (*t++ == pat) return t - 1; [[fallthrough]];
+ case 5: if (*t++ == pat) return t - 1; [[fallthrough]];
+ case 4: if (*t++ == pat) return t - 1; [[fallthrough]];
+ case 3: if (*t++ == pat) return t - 1; [[fallthrough]];
+ case 2: if (*t++ == pat) return t - 1; [[fallthrough]];
case 1: if (*t++ == pat) return t - 1;
}
while (textend != t) {