-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"no warnings 'exec'" does not disable "Statement unlikely to be reached" #13024
Comments
From @rjbsCreated by @rjbsI don't have a program called "lll" in my path. ~$ perl -Mwarnings -E 'exec "lll"; say "oops"' I get two warnings, both "exec" category, as expected. I don't want these. I will disable that category. perl -Mwarnings -E 'no warnings "exec"; exec "lll"; say "oops"' I only managed to disable one of them! The docs in perldiag make it clear how to disable this warning, and that More: With only unrelated warnings turned on, no warning. Great. ~$ perl -E 'use warnings "exiting"; exec "lll"; say "oops"' Turning on the "exec" category does not *enable* the warning: ~$ perl -E 'use warnings "exec"; exec "lll"; say "oops"' Turning off all warnings *does* disable the warning: ~$ perl -E 'use warnings; no warnings; exec "lll"; say "oops"' Looking at the difference between the two warnings (in op.c and doio.c) Perl Info
|
From @rjbsI have pushed 3cf2ee4e44b339198562fa5f52af6a52e85d52a8 as smoke-me/rjbs/exec- Please give it a look, anybody, and comment before I merge in a day or three. -- |
@rjbs - Status changed from 'new' to 'open' |
From @cpansproutOn Wed Jun 12 12:53:10 2013, rjbs wrote:
The fix looks perfectly correct to me. Interestingly.... 599cee7 (Aug 98) put it in the syntax category. eeb6a2c (Jan So ‘use warnings "syntax"’ enables that warning. ‘use warnings FATAL => -- Father Chrysostomos |
From @rjbs* Father Chrysostomos via RT <perlbug-followup@perl.org> [2013-06-12T21:08:04]
Yeah, once the ckWARN was pointed out, this behavior became clear, and I stared I will merge this fix tonight or tomorrow. -- |
From @cpansproutOn Thu Jun 13 06:14:07 2013, perl.p5p@rjbs.manxome.org wrote:
as 573d2b1. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#118455 (status was 'resolved')
Searchable as RT118455$
The text was updated successfully, but these errors were encountered: