From e933b0a58ab7b0f21faef0267c2cb835cabd5a03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 25 Feb 2017 12:44:28 +0000 Subject: [PATCH] Use GNU printf format This change only affects W32. GCC resolves "printf" format attribute to "gnu_printf" or "ms_printf" depending on the host platform. Make sure it uses gnu_printf even on W32, because all format strings GNUnet uses are in GNU format. --- src/include/gnunet_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index fdcae66fa..bda011fb2 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -391,7 +391,7 @@ GNUNET_get_log_call_status (int caller_level, */ void GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...) - __attribute__ ((format (printf, 2, 3))); + __attribute__ ((format (gnu_printf, 2, 3))); /* from glib */ #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) -- 2.25.1