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

[perl #133360] New compilation warning in core

From:
James E Keenan via RT
Date:
July 17, 2018 19:39
Subject:
[perl #133360] New compilation warning in core
Message ID:
rt-4.0.24-12890-1531856350-703.133360-15-0@perl.org
On Wed, 11 Jul 2018 13:02:43 GMT, randir wrote:
> This is a bug report for perl from sergey.aleynikov@gmail.com,
> generated with the help of perlbug 1.41 running under perl 5.29.0.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> The following warning is new in blead for the perl interpreter built
> with -DDEBUGGING -Dusethreads:
> 
> cc -c -DPERL_CORE -fno-common -DPERL_DARWIN -mmacosx-version-min=10.9
> -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include -DPERL_USE_SAFE_PUTENV -std=c89 -O3 -g -Wall
> -Werror=declaration-after-statement -Werror=pointer-arith -Wextra
> -Wc++-compat -Wwrite-strings util.c
> util.c:2073:1: warning: unused function 'S_env_alloc' [-Wunused-
> function]
> S_env_alloc(void *current, Size_t l1, Size_t l2, Size_t l3, Size_t
> size)
> ^
> 1 warning generated.

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)
Target: x86_64-unknown-freebsd11.1
Thread model: posix
InstalledDir: /usr/bin

$ ./perl -Ilib -V | grep config_args
    config_args='-des -Dusedevel -Duseithreads -Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing -DDEBUGGING'

$ grep -n 'unused function' 133360-make-test-prep-log.txt 
$ [no output]
#####

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133360



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