detect format string bugs
authorChristian Grothoff <christian@grothoff.org>
Wed, 4 May 2016 09:24:35 +0000 (09:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 4 May 2016 09:24:35 +0000 (09:24 +0000)
src/include/gnunet_common.h

index 89b69278995dc3ca384e834b1dc449cc781fc823..855d151cdd013f1b4c79729059d1a49d835ee7e6 100644 (file)
@@ -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__)