[easytag/wip/clang-analyzer: 10/14] Mark Log_Print() with G_GNUC_PRINTF
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/clang-analyzer: 10/14] Mark Log_Print() with G_GNUC_PRINTF
- Date: Mon, 12 Aug 2013 15:46:03 +0000 (UTC)
commit 6fa1490e92aa887799ad87b2cdf2475845ea7be0
Author: David King <amigadave amigadave com>
Date: Mon Aug 12 16:38:23 2013 +0100
Mark Log_Print() with G_GNUC_PRINTF
GCC can type-check arguments passed to printf-style functions.
src/log.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/log.h b/src/log.h
index 6d7f939..6aea0be 100644
--- a/src/log.h
+++ b/src/log.h
@@ -48,7 +48,8 @@ GtkWidget *Create_Log_Area (void);
void Log_Clean_Log_List (void);
-void Log_Print (Log_Error_Type error_type, gchar const *format, ...);
+void Log_Print (Log_Error_Type error_type,
+ gchar const *format, ...) G_GNUC_PRINTF (2, 3);
#endif /* __LOG_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]