[vlc-devel] [RFC] Wrapper to work around %z limitation on Windows
remi at remlab.net
Mon Mar 9 12:25:00 CET 2009
On Fri, 6 Mar 2009 13:35:21 +0100, Pierre Ynard <linkfanel at yahoo.fr> wrote:
> Another question, do we want to divert all 8 *printf functions to
> wrappers? It might be a little intrusive... For example, redefining
> printf with a macro causes compilation warning when "__attribute__
> ((format (printf, x, y)));" is used.
> For information, I grepped through the code, and all uses of %z are
> with msg_* functions (which are covered by vsnprintf), except one in
> modules/mux/mpjpeg.c, which uses snprintf to format a header.
> Either way, I don't really mind, as it's easy to change which functions
> are diverted to wrappers or not.
By the way, I guess format attribute is only an issue with the plain
"printf()". That function should pretty much only be used by vlc.c, and
perhaps the RC interface (then again not, so as to support RC over
So this seems like a non-issue.
More information about the vlc-devel