In perl.git, the branch smoke-me/hugmeir/pedantic-cleanups has been created
<http://perl5.git.perl.org/perl.git/commitdiff/800e700ce2b5b2cdcacd013f53c79bb0e059dbd5?hp=0000000000000000000000000000000000000000> at 800e700ce2b5b2cdcacd013f53c79bb0e059dbd5 (commit) - Log ----------------------------------------------------------------- commit 800e700ce2b5b2cdcacd013f53c79bb0e059dbd5 Author: Brian Fraser <[email protected]> Date: Sat May 31 16:54:22 2014 +0200 Silence several -Wunused-parameter warnings about my_perl This meant sprinkling some PERL_UNUSED_CONTEXT invocations, as well as stopping some functions from getting my_perl in the first place; all of the functions in the latter category are internal (S_ prefix and s or i in embed.fnc), so this should be both safe and economical. M dquote_static.c M embed.fnc M embed.h M hv.c M inline_invlist.c M mg.c M mro.c M op.c M perly.c M pp.c M proto.h M regcomp.c M regexec.c M sv.c M util.c commit 51242e11d6c6d0c4628f78fc55aa580021809781 Author: Brian Fraser <[email protected]> Date: Sat May 31 01:28:18 2014 +0200 Added seevral missing PERL_UNUSED_RESULT() M malloc.c M perl.h M util.c commit 60b6f8207809c0c701106e35684f9f6ef632edf6 Author: Brian Fraser <[email protected]> Date: Sat May 31 01:24:52 2014 +0200 Removed set_emergency_buffer from malloc.c This was added in 2003, but never used. M malloc.c commit 2cbad8f201b251953fdacc86df179b7fd14bb276 Author: Brian Fraser <[email protected]> Date: Sat May 31 01:19:27 2014 +0200 Mark several functions with __attribute__noreturn__ Namely, die_nocontext, die, die_sv, and screaminstr. They all croak and never return, so let's mark them as non-returning. M embed.fnc M embed.h M proto.h M util.c commit 87f2778891643f55fb0ce0d952c1119e1e313371 Author: Brian Fraser <[email protected]> Date: Sat May 31 01:16:46 2014 +0200 Cast %p arguments to (void*) These were all part of debugging statements; the commit silences a chunk of warnings under -Wformat M op.c M pad.c commit cd7d391f8362a777e6a26fe1e4402f064da7f644 Author: Brian Fraser <[email protected]> Date: Sat May 31 01:15:42 2014 +0200 Adding missing SVfARG() invocations This silences a chunk of warnings under -Wformat M mro.c M op.c M pad.c M perl.c M pp.c M pp_hot.c M sv.c M toke.c M util.c commit a54146780b941fbc61df0f1701f188bad2c091bf Author: Brian Fraser <[email protected]> Date: Sat May 31 01:13:26 2014 +0200 Adding missing HEKfARG() invocations This silences a chunk of warnings under -Wformat M doio.c M gv.c M hv.c M util.c commit 818e381c6c21637cef02b0875219b586c431c91d Author: Brian Fraser <[email protected]> Date: Sat May 31 01:10:20 2014 +0200 Protect against ptrdiff_t not being available. This is primarily for pedantic builds; ptrdiff_t is now standard, and had already been in use in the core without guards. M Configure M Cross/config.sh-arm-linux M NetWare/config.wc M Porting/config.sh M config_h.SH M configure.com M perl.h M plan9/config_sh.sample M sv.c M symbian/config.sh M uconfig.h M uconfig.sh M uconfig64.sh M win32/config.ce M win32/config.gc M win32/config.vc ----------------------------------------------------------------------- -- Perl5 Master Repository
