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
From:
Father Chrysostomos via RT
Date:
June 13, 2013 01:08
Subject:
[perl #118455] "no warnings 'exec'" does not disable "Statement unlikely to be reached"
Message ID:
rt-3.6.HEAD-2552-1371085683-1034.118455-15-0@perl.org
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.

Interestingly....

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
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118455

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About