gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37120 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r37120 - gnunet/src/include
Date: Wed, 4 May 2016 11:24:35 +0200

Author: grothoff
Date: 2016-05-04 11:24:35 +0200 (Wed, 04 May 2016)
New Revision: 37120

Modified:
   gnunet/src/include/gnunet_common.h
Log:
detect format string bugs

Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h  2016-05-03 20:56:13 UTC (rev 37119)
+++ gnunet/src/include/gnunet_common.h  2016-05-04 09:24:35 UTC (rev 37120)
@@ -386,7 +386,8 @@
  * @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__)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]