develooper Front page | perl.perl5.changes | Postings from March 2023

[Perl/perl5] cec945: perl.h - silence certain warnings on HPUXglobally.

From:
Yves Orton via perl5-changes
Date:
March 22, 2023 20:09
Subject:
[Perl/perl5] cec945: perl.h - silence certain warnings on HPUXglobally.
Message ID:
Perl/perl5/push/refs/heads/yves/hpux_build_warning_suppression/cd46a1-cec945@github.com
  Branch: refs/heads/yves/hpux_build_warning_suppression
  Home:   https://github.com/Perl/perl5
  Commit: cec945e971d707e78f2f460588e0f96fb4dce3be
      https://github.com/Perl/perl5/commit/cec945e971d707e78f2f460588e0f96fb4dce3be
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  perl.h - silence certain warnings on HPUX globally.

Theree are two warnings classes which account for a very large number of
warnings when building on HPUX Itanium. We know the cause of these
warnings and we are ok with ignoring them.

One set comes from our memory wrap checks, where we end up doing a
comparison against constants in certain conditions. See the comments in
handy.h line 2723 related to PERL_MALLOC_WRAP.

The other set comes from our common "trick" of doing OO in C code with
casting. This is the foundation of how we manage SV types and how we
manage regular expression ops (regops).

If this logic really was a problem then we would have lots of test
failures and segfaults, and we do not, so we can silence them.





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