Skip to content

Commit

Permalink
reintroduce some of the assertions
Browse files Browse the repository at this point in the history
This time after verifying they are all safe and avoiding to
add indentation issues that might obscure their scope.
  • Loading branch information
carenas committed Sep 22, 2024
1 parent eaf79b1 commit 91961b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pcre2_auto_possess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ for(;;)
if (list[1] == 0) return TRUE;
}

PCRE2_UNREACHABLE(); /* Control never reaches here */
PCRE2_UNREACHABLE(); /* Control never reaches here */
}


Expand Down
4 changes: 2 additions & 2 deletions src/pcre2_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5245,7 +5245,7 @@ for (;;)
}
}

PCRE2_UNREACHABLE(); /* Control never reaches here */
PCRE2_UNREACHABLE(); /* Control never reaches here */
}


Expand Down Expand Up @@ -9400,7 +9400,7 @@ for (;; pptr++)
pptr += meta_extra_lengths[meta];
}

PCRE2_UNREACHABLE(); /* Control never reaches here */
PCRE2_UNREACHABLE(); /* Control never reaches here */
}


Expand Down
2 changes: 1 addition & 1 deletion src/pcre2_study.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ for (;;)
}
}

PCRE2_UNREACHABLE(); /* Control never reaches here */
PCRE2_UNREACHABLE(); /* Control never reaches here */
}


Expand Down
2 changes: 1 addition & 1 deletion src/pcre2grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ for (;;)
return dent->d_name;
}

PCRE2_UNREACHABLE(); /* Control never reaches here */
PCRE2_UNREACHABLE(); /* Control never reaches here */
}

static void
Expand Down
2 changes: 1 addition & 1 deletion src/pcre2test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3600,7 +3600,7 @@ for (;;)
}
}

PCRE2_UNREACHABLE(); /* Control never reaches here */
PCRE2_UNREACHABLE(); /* Control never reaches here */
}


Expand Down

0 comments on commit 91961b3

Please sign in to comment.