[pulseaudio-discuss] [PATCH v2 1/6] gccmacro: Disable printf-like format checking on mingw32 compilers.
Rémi Denis-Courmont
remi at remlab.net
Tue Aug 21 05:43:33 PDT 2012
Le mardi 21 août 2012 14:32:06 Thomas Martitz, vous avez écrit :
> Am 21.08.2012 08:51, schrieb Rémi Denis-Courmont:
> > Le mardi 21 août 2012 00:50:34 Thomas Martitz, vous avez écrit :
> >> There are tons of warnings, most of them because the function is not
> >> recognized as printf-like.
> >
> > Removing checks looks very fishy.
> >
> > To use C99 and/or GNU format specifiers on MingW, you need to use the
> > gnuprintf attribute instead of printf. With printf, the format string is
> > validated according to the antiquated MSVC rules.
>
> Interesting, I didn't know about gnuprintf. FWIW, what are those
> antiquated MSVC rules?
The ones from C89.
--
Rémi Denis-Courmont
C/C++ software engineer looking for a job
http://www.linkedin.com/in/remidenis
More information about the pulseaudio-discuss
mailing list