Commit 0d8781b9 authored by Ian Lynagh's avatar Ian Lynagh

Use gnu_printf rather than just printf in function format attributes

On Windows, gcc thinks that printf means ms_printf, which is not the
case when we #define _POSIX_SOURCE 1.
parent bbc1eed9
......@@ -48,7 +48,7 @@ void vbarf(const char *s, va_list ap)
* errorBelch() invokes (*errorMsgFn)().
*/
void errorBelch(const char *s, ...)
GNUC3_ATTRIBUTE(format (printf, 1, 2));
GNUC3_ATTRIBUTE(format (gnu_printf, 1, 2));
void verrorBelch(const char *s, va_list ap);
......@@ -62,7 +62,7 @@ void verrorBelch(const char *s, va_list ap);
* sysErrorBelch() invokes (*sysErrorMsgFn)().
*/
void sysErrorBelch(const char *s, ...)
GNUC3_ATTRIBUTE(format (printf, 1, 2));
GNUC3_ATTRIBUTE(format (gnu_printf, 1, 2));
void vsysErrorBelch(const char *s, va_list ap);
......@@ -74,7 +74,7 @@ void vsysErrorBelch(const char *s, va_list ap);
* debugBelch() invokes (*debugMsgFn)().
*/
void debugBelch(const char *s, ...)
GNUC3_ATTRIBUTE(format (printf, 1, 2));
GNUC3_ATTRIBUTE(format (gnu_printf, 1, 2));
void vdebugBelch(const char *s, va_list ap);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment