[Perl/perl5] 8fbc08: threads.xs: avoid unreachable code

[email protected] (David Mitchell via perl5-changes)
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/blead/[email protected]>
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8fbc080eab88bdc568bb38f6764e1137a3efb963
      https://github.com/Perl/perl5/commit/8fbc080eab88bdc568bb38f6764e1137a3efb963
  Author: David Mitchell <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M dist/threads/threads.xs

  Log Message:
  -----------
  threads.xs: avoid unreachable code

A recent change of mine added an unconditional 'XSRETURN(1)' at the end
of a PPCODE block, meaning that the code which the XS parser adds after
the block is never reached. This made Coverity sad.

So return the value in a different way.

This should make no functional difference.



To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.