From 3c3a91a4472f4b58da7a44f25336934571311701 Mon Sep 17 00:00:00 2001 From: jgeboski Date: Tue, 27 Jan 2015 20:20:46 -0500 Subject: Check format string security at compile-time This enables various format string security checks by the compiler in attempt to avoid run-time failures. --- facebook/facebook-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'facebook/facebook-util.h') diff --git a/facebook/facebook-util.h b/facebook/facebook-util.h index 9bfb04f..fdf4434 100644 --- a/facebook/facebook-util.h +++ b/facebook/facebook-util.h @@ -46,7 +46,8 @@ gboolean fb_util_debugging(void); #ifdef DEBUG_FACEBOOK void fb_util_hexdump(const GByteArray *bytes, guint indent, - const gchar *fmt, ...); + const gchar *fmt, ...) + G_GNUC_PRINTF(3, 4); #else /* DEBUG_FACEBOOK */ #define fb_util_hexdump(bs, i, f, ...) #endif /* DEBUG_FACEBOOK */ -- cgit v1.2.3