mark Perl_my_strftime with format attribute
authorDavid Mitchell <davem@iabyn.com>
Tue, 26 Nov 2013 15:50:45 +0000 (15:50 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 28 Nov 2013 17:03:49 +0000 (17:03 +0000)
commit531b2663d70bdda47662024f4697a3c3f713f83c
treec51deedbb0bb319397306d8c129bf1f3d57b8834
parent1061065f7a09399eefb50e9a035502621722bcc0
mark Perl_my_strftime with format attribute

mark this function with

    __attribute__format__null_ok__(__strftime__,pTHX_1,0)

so that compiler checks and warnings about strftime-style format args
can be checked.

Rather than adding new flag(s) to embed.fnc, I just enhanced the f flag
to treat it as strftime-style rather than printf if the function name
matches /strftime/. This was quicker, and we're unlikely to have many
such functions.
embed.fnc
proto.h
regen/embed.pl