From 8888a37426ff514d68c9b91e5f5185dedde9df4a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 7 Nov 2012 20:46:40 +0100 Subject: let compiler check printf-like arguments --- sciteco.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sciteco.h') diff --git a/sciteco.h b/sciteco.h index 49963c4..f0425d6 100644 --- a/sciteco.h +++ b/sciteco.h @@ -13,7 +13,8 @@ extern gchar *cmdline; extern gint macro_pc; -void message_display(GtkMessageType type, const gchar *fmt, ...); +void message_display(GtkMessageType type, + const gchar *fmt, ...) G_GNUC_PRINTF(2, 3); void cmdline_keypress(gchar key); void cmdline_display(const gchar *cmdline); -- cgit v1.2.3