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

Re: Newly introduced build warnings

Thread Previous
James E Keenan
October 15, 2017 05:09
Re: Newly introduced build warnings
Message ID:
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 
> @cc -c -DPERL_CORE -fwrapv -fno-strict-aliasing -pipe 
> -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE 
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About