From 8e9bb50b7543608c2c1a833a5b92f19941ed7a0a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 May 2016 09:24:35 +0000 Subject: [PATCH] detect format string bugs --- src/include/gnunet_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 89b692789..855d151cd 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -386,7 +386,8 @@ GNUNET_get_log_call_status (int caller_level, * @param ... arguments for format string */ void -GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...); +GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...) + __attribute__ ((format (printf, 2, 3))); /* from glib */ #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) -- 2.25.1