From e933b0a58ab7b0f21faef0267c2cb835cabd5a03 Mon Sep 17 00:00:00 2001 From: Руслан Ижбулатов Date: Sat, 25 Feb 2017 12:44:28 +0000 Subject: 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(-) (limited to 'src/include/gnunet_common.h') 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__) -- cgit v1.2.3