[2993] in BarnOwl Developers
Re: [PATCH] Use G_GNUC_PRINTF to get type-checking on our format
daemon@ATHENA.MIT.EDU (David A Benjamin)
Thu Mar 24 00:02:03 2011
Date: Thu, 24 Mar 2011 00:01:59 -0400 (EDT)
From: David A Benjamin <davidben@MIT.EDU>
To: Anders Kaseorg <andersk@mit.edu>
cc: barnowl-dev@mit.edu
In-Reply-To: <alpine.DEB.2.02.1102260209240.10886@dr-wily.mit.edu>
...that works too I guess. :-D
It LGTM. I guess I technically wrote the original version, but whatever.
David
On Sat, 26 Feb 2011, Anders Kaseorg wrote:
> On Sat, 26 Feb 2011, David Benjamin wrote:
>> Though some preprocessor magic is needed to get around owl_prototypes.h.
>
> Not if you place the attribute correctly, e.g.
> void G_GNUC_PRINTF(2, 3) owl_fmtext_appendf_normal(owl_fmtext *f, const char *fmt, ...)
>
> git://andersk.mit.edu/barnowl.git printf
>
> Anders
>