[PATCH] Add format attribute for buffer_printf functions

Kevin J. McCarthy kevin at 8t8.us
Thu Apr 11 14:17:01 UTC 2019


On Wed, Apr 10, 2019 at 07:44:45PM -0400, aaron+mutt at schrab.com wrote:
>Let compilers know that `mutt_buffer_printf()` and
>`mutt_buffer_add_printf()` expect the second argument to be a
>`printf`-style format string with the arguments for the format starting
>at the third argument. This allows warnings to be shown if these are
>incorrect.

AKAIK this is a GCC extension.  Mutt thus far has tried to remain 
compiler agnostic, so I'm -0 to this.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20190411/72d9c09b/attachment.asc>


More information about the Mutt-dev mailing list