develooper Front page | perl.perl5.porters | Postings from July 2018

[perl #133360] New compilation warning in core

Thread Next
Sergey Aleynikov via RT
July 22, 2018 15:33
[perl #133360] New compilation warning in core
Message ID:
On Tue, 17 Jul 2018 12:39:10 -0700, jkeenan wrote:
> I tried a similar configuration and build on FreeBSD-11.1 but did
> *not* get that warning:

> $ uname -mrs
> FreeBSD 11.1-STABLE amd64
> $ clang --version
> FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on
> LLVM 6.0.0)

It's a platform-specific (Darwin) issue, not compiler-specific. I've investigated a bit further and have found offending commit to be 

commit 34716e2a6ee2af96078d62b065b7785c001194be
Author: David Mitchell <>
Date:   Fri Jun 29 13:37:03 2018 +0100

    Perl_my_setenv(); handle integer wrap

    RT #133204

which intorduced S_env_alloc funnction, but in a #if defined(PERL_DARWIN) branch on line 2169 still directly calls setenv(), making S_env_alloc unused on some platforms (as I haven't analyzed which other platforms from that line will also get this warning).

via perlbug:  queue: perl5 status: open

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