develooper Front page | perl.perl5.changes | Postings from September 2021

[Perl/perl5] 0ce638: gh19100: avoid buggy "maybe used uninitialized"wa...

From:
Hugo van der Sanden via perl5-changes
Date:
September 17, 2021 12:10
Subject:
[Perl/perl5] 0ce638: gh19100: avoid buggy "maybe used uninitialized"wa...
Message ID:
Perl/perl5/push/refs/heads/hv/init_myperl/000000-0ce638@github.com
  Branch: refs/heads/hv/init_myperl
  Home:   https://github.com/Perl/perl5
  Commit: 0ce638951b075ffaf34d8c4d68ca876625503563
      https://github.com/Perl/perl5/commit/0ce638951b075ffaf34d8c4d68ca876625503563
  Author: Hugo van der Sanden <hv@crypt.org>
  Date:   2021-09-17 (Fri, 17 Sep 2021)

  Changed paths:
    M perl.c

  Log Message:
  -----------
  gh19100: avoid buggy "maybe used uninitialized" warning

New warnings introduced around gcc-10 or -11 assume that the call to
pthread_getspecific() in S_init_tls_and_interp may read through the
my_perl pointer provided; writing to any element of the structure
is enough to shut it up.





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