summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-22 09:44:33 +0100
committerYves Orton <demerphq@gmail.com>2023-03-29 20:54:49 +0800
commitc9bcbc57be3bba2d29d280f4a30fae62fc5bf48f (patch)
treedaee86095535910cbb515b6d82b0101cdbdf6773
parent19ed09803687be5ff50321b9acf3053b5ce80215 (diff)
downloadperl-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/op.c b/op.c
index cf3f034f4e..8524252d39 100644
--- a/op.c
+++ b/op.c
@@ -2469,8 +2469,7 @@ Perl_scalarvoid(pTHX_ OP *arg)
}
o = next_kid;
}
-
- return arg;
+ NOT_REACHED;
}