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

[email protected] (David Mitchell via perl5-changes)
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/davem/threads_xs_fix/[email protected]>
  Branch: refs/heads/davem/threads_xs_fix
  Home:   https://github.com/Perl/perl5
  Commit: 8ef49c647c944124a5ed6502639c0946a1b0519b
      https://github.com/Perl/perl5/commit/8ef49c647c944124a5ed6502639c0946a1b0519b
  Author: David Mitchell <[email protected]>
  Date:   2026-03-04 (Wed, 04 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.