develooper Front page | perl.perl5.porters | Postings from October 2017

Re: Newly introduced build warnings

Thread Previous
From:
James E Keenan
Date:
October 15, 2017 05:09
Subject:
Re: Newly introduced build warnings
Message ID:
5f790ee8-5403-67f6-17be-d9a63b764c76@pobox.com
On 10/14/2017 08:03 AM, James E Keenan wrote:
> At commit b85413f2f7e3a987c10194a0773619f2538abf73, when I configure as 
> I do everyday (unthreaded Linux; gcc-5.4.0) and call 'make', I now get 
> 113 instances of this warning:
> 
> #####
> echo @`sh  cflags "optimize='-O2'" opmini.o`  -DPERL_IS_MINIPERL 
> -DPERL_EXTERNAL_GLOB opmini.c
> @cc -c -DPERL_CORE -fwrapv -fno-strict-aliasing -pipe 
> -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -O2 -Wall -DPERL_IS_MINIPERL -DPERL_EXTERNAL_GLOB 
> opmini.c
> In file included from hv_func.h:35:0,
>                   from hv.h:653,
>                   from perl.h:3926,
>                   from op.c:163:
> sbox32_hash.h:4:1: warning: unknown option after ‘#pragma GCC 
> diagnostic’ kind [-Wpragmas]
>   GCC_DIAG_IGNORE(-Wimplicit-fallthrough)
>   ^
> #####
> 
> Can these warnings be removed so that we once again get a warnings-free 
> build with this version of gcc?

As of 4f6c12f these warnings have been cleared up.  Now building 
warnings-free on gcc-5 and g++ on Linux and on gcc, g++ and clang on 
FreeBSD-11.0.  Thanks to Lukas, Yves and all who collaborated on this.

Jim Keenan

Thread Previous


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