From: Руслан Ижбулатов Date: Sat, 25 Feb 2017 12:44:28 +0000 (+0000) Subject: Use GNU printf format X-Git-Tag: taler-0.2.1~60 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e933b0a58ab7b0f21faef0267c2cb835cabd5a03;p=oweals%2Fgnunet.git 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. --- 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__)