Branch: refs/heads/ilmari/more-ck-warner
  Home:   https://github.com/Perl/perl5
  Commit: 579b6458ef66c6d1c15f768bec7f82cee340b400
      
https://github.com/Perl/perl5/commit/579b6458ef66c6d1c15f768bec7f82cee340b400
  Author: Dagfinn Ilmari Mannsåker <ilm...@ilmari.org>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M amigaos4/amigaio.c
    M cygwin/cygwin.c
    M doio.c
    M os2/os2.c
    M perl.c
    M perlio.c
    M pp_hot.c
    M pp_sys.c
    M sv.c
    M utf8.c
    M vms/vms.c
    M win32/win32.c

  Log Message:
  -----------
  Use ck_warner() more

Replace trivial uses of

    if(ckWARN(WARN_FOO))
        warner(packWARN(WARN_FOO), ...);

with

    ck_warner(packWARN(WARN_FOO), ...);

This does mean that the format string arguments get evaluated even if
the warning category isn't enabled, but the most expensive thing I
could see was Strerror(), which I woudn't worry about.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to