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

[perl #133360] New compilation warning in core

Thread Next
From:
Sergey Aleynikov via RT
Date:
July 22, 2018 15:33
Subject:
[perl #133360] New compilation warning in core
Message ID:
rt-4.0.24-18130-1532273620-1737.133360-15-0@perl.org
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 <davem@iabyn.com>
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
https://rt.perl.org/Ticket/Display.html?id=133360

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