diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-04 09:24:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-04 09:24:35 +0000 |
commit | 8e9bb50b7543608c2c1a833a5b92f19941ed7a0a (patch) | |
tree | c96d66a33592018b6e63c4ea7823be60cbf084e4 /src/include/gnunet_common.h | |
parent | 6b299c649781cd8e6463ee317efe3c43eab0a3c1 (diff) | |
download | gnunet-8e9bb50b7543608c2c1a833a5b92f19941ed7a0a.tar.gz gnunet-8e9bb50b7543608c2c1a833a5b92f19941ed7a0a.zip |
detect format string bugs
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
386 | * @param ... arguments for format string | 386 | * @param ... arguments for format string |
387 | */ | 387 | */ |
388 | void | 388 | void |
389 | GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...); | 389 | GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message, ...) |
390 | __attribute__ ((format (printf, 2, 3))); | ||
390 | 391 | ||
391 | /* from glib */ | 392 | /* from glib */ |
392 | #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) | 393 | #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) |