develooper Front page | perl.perl5.porters | Postings from September 2019

[perl #134405] New compilation warnings in blead(-Wdeprecated-declarations)

From:
James E Keenan via RT
Date:
September 7, 2019 02:43
Subject:
[perl #134405] New compilation warnings in blead(-Wdeprecated-declarations)
Message ID:
rt-4.0.24-31383-1567824202-1240.134405-15-0@perl.org
On Tue, 03 Sep 2019 22:00:06 GMT, khw wrote:
> Thanks for reporting this
> Fixed by
> 
> commit 11675f52de33c98d9506667c90b3109e45b149b3
>  Author: Karl Williamson <khw@cpan.org>
>  Date:   Tue Sep 3 14:19:26 2019 -0600
>  
>      Remove deprecated flag from sv_nosharing.
>      
>      I  recently introduced this by mistake.

Karl, I don't think that completely fixed the problem.  I'm still seeing '-Wdeprecated_declarations' warnings that were not present in, say, perl-5.31.3 from last month.

On Linux, compiling v5.31.3 with gcc 7.4.0 (as I have been doing for some time), I got:

#####
$ report-build-warnings make.linux.v5.31.3.gcc74.output.txt
File:  make.linux.v5.31.3.gcc74.output.txt

  Wimplicit-fallthrough=                    35
  Wunused-variable                           2

#####

But at head I get:

#####
$ report-build-warnings make.linux.abd18c6d.gcc74.output.txt 
File:  make.linux.abd18c6d.gcc74.output.txt

  Wdeprecated-declarations                   6
  Wimplicit-fallthrough=                    35
  Wunused-variable                           2
#####

Those warnings show up here:

#####
  {
    char   => 1,
    group  => "Wdeprecated-declarations",
    line   => 813,
    source => "intrpvar.h",
    text   => "\xE2\x80\x98Perl_sv_nounlocking\xE2\x80\x99 is deprecated",
  },
  {
    char   => 5,
    group  => "Wdeprecated-declarations",
    line   => 10747,
    source => "sv.c",
    text   => "\xE2\x80\x98Perl_sv_setpviv\xE2\x80\x99 is deprecated",
  },
  {
    char   => 1,
    group  => "Wdeprecated-declarations",
    line   => 813,
    source => "intrpvar.h",
    text   => "\xE2\x80\x98Perl_sv_nounlocking\xE2\x80\x99 is deprecated",
  },
  {
    char   => 5,
    group  => "Wdeprecated-declarations",
    line   => 466,
    source => "mathoms.c",
    text   => "\xE2\x80\x98Perl_sv_pvn\xE2\x80\x99 is deprecated",
  },
  {
    char   => 5,
    group  => "Wdeprecated-declarations",
    line   => 502,
    source => "mathoms.c",
    text   => "\xE2\x80\x98Perl_sv_pvn\xE2\x80\x99 is deprecated",
  },
  {
    char   => 1,
    group  => "Wdeprecated-declarations",
    line   => 813,
    source => "intrpvar.h",
    text   => "\xE2\x80\x98Perl_sv_nounlocking\xE2\x80\x99 is deprecated",
  },
#####

The number of times I get this warning varies with OS and C-compiler.  For example, on FreeBSD-11 using clang-6.0.1, I only get this warning 2 times.

Re-opening ticket.

Thank you very much.
-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: pending release
https://rt.perl.org/Ticket/Display.html?id=134405



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