Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Silence clang compiler warning: unannotated fall-through between switch labels#789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
NWilson merged 18 commits intoPCRE2Project:masterfromGsus42:master
Sep 12, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
5cd8f35
UPDATE: silence clang warning: unannotated fall-through between switc…
Sep 3, 2025
deb1078
UPDATE: check whether compiler supports __attribute__((fallthrough)) …
Sep 3, 2025
eb48177
Revert "UPDATE: check whether compiler supports __attribute__((fallth…
Sep 3, 2025
2f07842
UPDATE: introduce PCRE2_FALLTHROUGH macro to allow portable annotatio…
Sep 3, 2025
db25c8b
UPDATE: fix comment.
Sep 3, 2025
bd6fdc0
UPDATE: point out to use the define in conjunction with a comment (I …
Sep 3, 2025
04f83d2
UPDATE: use C comments. also add that explictly to the comment on how…
Sep 3, 2025
38a5f1c
UPDATE: use single line comment to show an example usage.
Sep 3, 2025
ddb0040
UPDATE: add -Wimplicit-fallthrough. I hope this is the correct spot t…
Sep 3, 2025
7a2c156
UPDATE: introduce __has_c_attribute to check whether compiler support…
Sep 3, 2025
1f8a83f
UPDATE: check the C standard version. replace [[fallthrough]] by [[__…
Sep 3, 2025
9a72a66
UPDATE: use underscored version of fallthrough attribute. mind that i…
Sep 3, 2025
4240786
UPDATE: first test C standard version then check for __fallthrough__ …
Sep 3, 2025
53f1896
UPDATE: add missing PCRE2_FALLTHROUGH for JIT compiler.
Sep 3, 2025
e666bb1
UPDATE: add further missing PCRE2_FALLTHROUGH for JIT compiler.
Sep 3, 2025
6a67aa2
UPDATE: (try to) fix compile issue of manyconfig test.
Sep 4, 2025
3c10689
Merge remote-tracking branch 'origin/master' into Gsus42-change
NWilsonSep 12, 2025
4a87255
Update with further changes from the sljit PRs
NWilsonSep 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
UPDATE: add missing PCRE2_FALLTHROUGH for JIT compiler.
  • Loading branch information
Gernot Gebhard committedSep 3, 2025
commit53f1896ea7411dbb3442758e566fea8549e382cd
4 changes: 2 additions & 2 deletionssrc/pcre2_jit_char_inc.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -570,7 +570,7 @@ while (*cc == XCL_PROP || *cc == XCL_NOTPROP)
break;
}
compares++;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case PT_SC:
status |= XCLASS_HAS_SCRIPT;
Expand DownExpand Up@@ -770,7 +770,7 @@ if (status & XCLASS_NEEDS_UCD)
case PT_SCX:
if (cc[-1] == XCL_NOTPROP)
break;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case PT_SC:
compares--;
Expand Down
26 changes: 13 additions & 13 deletionssrc/pcre2_jit_compile.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1245,7 +1245,7 @@ while (cc < ccend)
case OP_DNREFI:
case OP_DNREF:
locals_size = ref_update_local_size(common, cc, locals_size);
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_DNCREF:
count = GET2(cc, 1 + IMM2_SIZE);
slot = common->name_table + GET2(cc, 1) * common->name_entry_size;
Expand DownExpand Up@@ -1334,7 +1334,7 @@ while (cc < ccend)
if (common->utf && locals_size <= 3 * SSIZE_OF(sw))
locals_size = 3 * SSIZE_OF(sw);
#endif
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
default:
cc = next_opcode(common, cc);
if (cc == NULL)
Expand DownExpand Up@@ -1483,7 +1483,7 @@ do
case OP_TYPEMINPLUS:
if (count == 2)
count = 3;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case OP_TYPESTAR:
case OP_TYPEPLUS:
Expand DownExpand Up@@ -1512,7 +1512,7 @@ do
case OP_TYPEMINUPTO:
case OP_TYPEPOSUPTO:
cc += IMM2_SIZE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case OP_TYPEQUERY:
case OP_TYPEMINQUERY:
Expand All@@ -1533,7 +1533,7 @@ do
case OP_NOTMINPLUSI:
if (count == 2)
count = 3;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case OP_STAR:
case OP_PLUS:
Expand DownExpand Up@@ -1586,7 +1586,7 @@ do
case OP_NOTEXACTI:
case OP_NOTPOSUPTOI:
cc += IMM2_SIZE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case OP_QUERY:
case OP_MINQUERY:
Expand DownExpand Up@@ -1626,7 +1626,7 @@ do
case OP_CRMINPLUS:
if (count == 2)
count = 3;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */

case OP_CRSTAR:
case OP_CRPLUS:
Expand All@@ -1648,7 +1648,7 @@ do
}

cc += 2 * IMM2_SIZE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_CRQUERY:
case OP_CRMINQUERY:
case OP_CRPOSQUERY:
Expand DownExpand Up@@ -5947,7 +5947,7 @@ while (TRUE)
{
case OP_CHARI:
caseless = TRUE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_CHAR:
last = FALSE;
cc++;
Expand DownExpand Up@@ -5984,7 +5984,7 @@ while (TRUE)
case OP_MINPLUSI:
case OP_POSPLUSI:
caseless = TRUE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_PLUS:
case OP_MINPLUS:
case OP_POSPLUS:
Expand All@@ -5993,7 +5993,7 @@ while (TRUE)

case OP_EXACTI:
caseless = TRUE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_EXACT:
repeat = GET2(cc, 1);
last = FALSE;
Expand All@@ -6004,7 +6004,7 @@ while (TRUE)
case OP_MINQUERYI:
case OP_POSQUERYI:
caseless = TRUE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_QUERY:
case OP_MINQUERY:
case OP_POSQUERY:
Expand DownExpand Up@@ -6219,7 +6219,7 @@ while (TRUE)
case OP_CRMINQUERY:
case OP_CRPOSQUERY:
last = FALSE;
/* Fall through */
PCRE2_FALLTHROUGH;/* Fall through */
case OP_CRSTAR:
case OP_CRMINSTAR:
case OP_CRPOSSTAR:
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp