[Perl/perl5] cffcf0: regcharclass.h: cast length-returning macros to ST...

[email protected] (Christian Hansen 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: cffcf0cc51bcb48b45f3f22c90219519289ccdd8
      https://github.com/Perl/perl5/commit/cffcf0cc51bcb48b45f3f22c90219519289ccdd8
  Author: Christian Hansen <[email protected]>
  Date:   2026-04-09 (Thu, 09 Apr 2026)

  Changed paths:
    M regcharclass.h
    M regen/regcharclass.pl

  Log Message:
  -----------
  regcharclass.h: cast length-returning macros to STRLEN to suppress Clang warning

Clang's -Wtautological-constant-compare warning fired when macros like
is_MULTI_CHAR_FOLD_latin1_safe() were used in boolean context, because
inner ternaries returning integer constants always evaluate to true as booleans.



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.