agent: Add printf function attribute
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 17 Dec 2013 09:36:51 +0000 (09:36 +0000)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 18 Dec 2013 22:50:34 +0000 (17:50 -0500)
This shuts a compiler warning up and allows for format string checking
of debug messages. (See future commits for the fixes this has resulted
in.)

agent/debug.h

index a31d95c..d802561 100644 (file)
@@ -97,7 +97,7 @@ void nice_debug_enable (gboolean with_stun);
  */
 void nice_debug_disable (gboolean with_stun);
 
-void nice_debug (const char *fmt, ...);
+void nice_debug (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
 
 G_END_DECLS