develooper Front page | perl.perl5.porters | Postings from June 2013

[perl #118455] "no warnings 'exec'" does not disable "Statement unlikely to be reached"

Thread Previous | Thread Next
Father Chrysostomos via RT
June 13, 2013 01:08
[perl #118455] "no warnings 'exec'" does not disable "Statement unlikely to be reached"
Message ID:
On Wed Jun 12 12:53:10 2013, rjbs wrote:
> I have pushed 3cf2ee4e44b339198562fa5f52af6a52e85d52a8 as smoke-
> me/rjbs/exec-
> warning.
> Please give it a look, anybody, and comment before I merge in a day or
> three.

The fix looks perfectly correct to me.


599cee73f2261 (Aug 98) put it in the syntax category.  eeb6a2c983b (Jan
2000, entitled ‘wrong category for exec() warning’) made it inconsistent.

So ‘use warnings "syntax"’ enables that warning.  ‘use warnings FATAL =>
'exec'’ fatalizes it; but, of course, it is only fatal if it happens,
which is when ‘syntax’ warnings are enabled.  Fascinating. :-)


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About