Branch: refs/heads/ilmari/more-ck-warner Home: https://github.com/Perl/perl5 Commit: 79bdbfa0f5bf83d240ed178b38f9db516430d808 https://github.com/Perl/perl5/commit/79bdbfa0f5bf83d240ed178b38f9db516430d808 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