summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2019-10-25 09:46:57 -0500
committerCraig A. Berry <craigberry@mac.com>2019-10-25 09:46:57 -0500
commitad1d31a566e2cab4603d8d3f39b92fe418748ace (patch)
tree8e63baa0d1ccd0d4753f2dea405deb7b0babd6e8 /toke.c
parenteeead40bddc89e6d928ff2cb39d0e53f40476b64 (diff)
downloadperl-ad1d31a566e2cab4603d8d3f39b92fe418748ace.tar.gz
void functions don't need to indicate lack of return
The somewhat confusingly named NORETURN_FUNCTION_END, introduced in 0dbb1585a715e563, apparently indicates that the function expects a return but isn't getting one. Since void functions don't expect a return, it isn't appropriate for them, and in fact, since the macro includes a return statement, some compilers will whinge about returning from a void function.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index a63b69a7b0..bc1caba259 100644
--- a/toke.c
+++ b/toke.c
@@ -6635,8 +6635,6 @@ yyl_croak_unrecognised(pTHX_ char *s)
Perl_croak(aTHX_ "Unrecognized character %s; marked by <-- HERE after %" UTF8f "<-- HERE near column %d", c,
UTF8fARG(UTF, (s - d), d),
(int) len + 1);
-
- NORETURN_FUNCTION_END;
}
static int