FTBFS if "-Werror=format-security" flag is used

Ben Boeckel mathstuf at gmail.com
Fri Dec 6 03:20:54 UTC 2013


On Fri, 06 Dec, 2013 at 01:21:20 GMT, Kevin Kofler wrote:
> a printf wrapper for logging which adds a timestamp in front of the
> format string.

Use the printf attribute on the function to fix this. See stalonetray's
patch[1]. It can't be done portably with a macro (you need ##
__VA_ARGS__ for that, so it should be a function anyways).

--Ben

[1]https://pkgs.fedoraproject.org/cgit/stalonetray.git/tree/stalonetray-0.8.1--Werror-format-security.patch



More information about the devel mailing list