From 91961b3319d0b525c1e68587faa794849ba4086d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Sun, 22 Sep 2024 03:19:40 -0700 Subject: [PATCH] reintroduce some of the assertions This time after verifying they are all safe and avoiding to add indentation issues that might obscure their scope. --- src/pcre2_auto_possess.c | 2 +- src/pcre2_compile.c | 4 ++-- src/pcre2_study.c | 2 +- src/pcre2grep.c | 2 +- src/pcre2test.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pcre2_auto_possess.c b/src/pcre2_auto_possess.c index 66788cb70..89e424188 100644 --- a/src/pcre2_auto_possess.c +++ b/src/pcre2_auto_possess.c @@ -1121,7 +1121,7 @@ for(;;) if (list[1] == 0) return TRUE; } - PCRE2_UNREACHABLE(); /* Control never reaches here */ +PCRE2_UNREACHABLE(); /* Control never reaches here */ } diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c index 936f490cd..62fcd8688 100644 --- a/src/pcre2_compile.c +++ b/src/pcre2_compile.c @@ -5245,7 +5245,7 @@ for (;;) } } - PCRE2_UNREACHABLE(); /* Control never reaches here */ +PCRE2_UNREACHABLE(); /* Control never reaches here */ } @@ -9400,7 +9400,7 @@ for (;; pptr++) pptr += meta_extra_lengths[meta]; } - PCRE2_UNREACHABLE(); /* Control never reaches here */ +PCRE2_UNREACHABLE(); /* Control never reaches here */ } diff --git a/src/pcre2_study.c b/src/pcre2_study.c index f7da869e7..6342f01ee 100644 --- a/src/pcre2_study.c +++ b/src/pcre2_study.c @@ -759,7 +759,7 @@ for (;;) } } - PCRE2_UNREACHABLE(); /* Control never reaches here */ +PCRE2_UNREACHABLE(); /* Control never reaches here */ } diff --git a/src/pcre2grep.c b/src/pcre2grep.c index b4c657a6f..a18bc1306 100644 --- a/src/pcre2grep.c +++ b/src/pcre2grep.c @@ -903,7 +903,7 @@ for (;;) return dent->d_name; } - PCRE2_UNREACHABLE(); /* Control never reaches here */ +PCRE2_UNREACHABLE(); /* Control never reaches here */ } static void diff --git a/src/pcre2test.c b/src/pcre2test.c index cfaeb2572..78ac6c606 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -3600,7 +3600,7 @@ for (;;) } } - PCRE2_UNREACHABLE(); /* Control never reaches here */ +PCRE2_UNREACHABLE(); /* Control never reaches here */ }