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-api.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'facebook/facebook-api.h') diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h index 6d5c9f2..3080125 100644 --- a/facebook/facebook-api.h +++ b/facebook/facebook-api.h @@ -293,7 +293,8 @@ void fb_api_rehash(fb_api_t *api); void fb_api_free(fb_api_t *api); -void fb_api_error(fb_api_t *api, fb_api_error_t err, const gchar *fmt, ...); +void fb_api_error(fb_api_t *api, fb_api_error_t err, const gchar *fmt, ...) + G_GNUC_PRINTF(3, 4); void fb_api_auth(fb_api_t *api, const gchar *user, const gchar *pass); @@ -306,7 +307,8 @@ void fb_api_disconnect(fb_api_t *api); void fb_api_message(fb_api_t *api, fb_id_t id, gboolean thread, const gchar *msg); -void fb_api_publish(fb_api_t *api, const gchar *topic, const gchar *fmt, ...); +void fb_api_publish(fb_api_t *api, const gchar *topic, const gchar *fmt, ...) + G_GNUC_PRINTF(3, 4); void fb_api_thread_create(fb_api_t *api, GSList *uids); -- cgit v1.2.3