diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-22 09:44:33 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-29 20:54:49 +0800 |
commit | c9bcbc57be3bba2d29d280f4a30fae62fc5bf48f (patch) | |
tree | daee86095535910cbb515b6d82b0101cdbdf6773 | |
parent | 19ed09803687be5ff50321b9acf3053b5ce80215 (diff) | |
download | perl-c9bcbc57be3bba2d29d280f4a30fae62fc5bf48f.tar.gz |
op.c - deal with not-reached statement warning
The return statement could never be reached as the while loop
is while(1) and there is no break statement inside of it. This
patch replaces the 'return arg;' with a NOT_REACHED; assertion,
just in case someone does add a break later on without thinking.
-rw-r--r-- | op.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2469,8 +2469,7 @@ Perl_scalarvoid(pTHX_ OP *arg) } o = next_kid; } - - return arg; + NOT_REACHED; } |