aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2017-02-25 12:44:28 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2017-02-25 21:02:07 +0000
commite933b0a58ab7b0f21faef0267c2cb835cabd5a03 (patch)
treef6d221e2d17166d3353361e9b141c26ee510a457 /src/include
parentb4c3f31e666236ec63358533559a470bff1dfbfd (diff)
downloadgnunet-e933b0a58ab7b0f21faef0267c2cb835cabd5a03.tar.gz
gnunet-e933b0a58ab7b0f21faef0267c2cb835cabd5a03.zip
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_common.h2
1 files changed, 1 insertions, 1 deletions
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,
391 */ 391 */
392void 392void
393GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...) 393GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...)
394 __attribute__ ((format (printf, 2, 3))); 394 __attribute__ ((format (gnu_printf, 2, 3)));
395 395
396/* from glib */ 396/* from glib */
397#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) 397#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)