pidgin: 020c412e: Set G_GNUC_PRINTF(2, 3) on our debug fun...
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Mar 16 16:40:46 EDT 2008
-----------------------------------------------------------------
Revision: 020c412ea16ccc19ef6d570f35d9caea6b0c5f59
Ancestor: 6d7c3abd2d7bce2089371a61f62aa7b22e59f889
Author: markdoliner at pidgin.im
Date: 2008-03-16T20:35:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/020c412ea16ccc19ef6d570f35d9caea6b0c5f59
Modified files:
libpurple/debug.h
ChangeLog:
Set G_GNUC_PRINTF(2, 3) on our debug functions. This sets the 'format'
function attribute, which causes the compiler to print a warning if
we pass incorrect parameters based on the format string.
-------------- next part --------------
============================================================
--- libpurple/debug.h a0fe1fb72bbd8a6bb0d101be07d9e73dcefea789
+++ libpurple/debug.h 29b9035be2581e217342ad2b54a7afd3d0463d56
@@ -74,7 +74,7 @@ void purple_debug(PurpleDebugLevel level
* @param format The format string.
*/
void purple_debug(PurpleDebugLevel level, const char *category,
- const char *format, ...);
+ const char *format, ...) G_GNUC_PRINTF(3, 4);
/**
* Outputs misc. level debug information.
@@ -87,7 +87,7 @@ void purple_debug(PurpleDebugLevel level
*
* @see purple_debug()
*/
-void purple_debug_misc(const char *category, const char *format, ...);
+void purple_debug_misc(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3);
/**
* Outputs info level debug information.
@@ -100,7 +100,7 @@ void purple_debug_misc(const char *categ
*
* @see purple_debug()
*/
-void purple_debug_info(const char *category, const char *format, ...);
+void purple_debug_info(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3);
/**
* Outputs warning level debug information.
@@ -113,7 +113,7 @@ void purple_debug_info(const char *categ
*
* @see purple_debug()
*/
-void purple_debug_warning(const char *category, const char *format, ...);
+void purple_debug_warning(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3);
/**
* Outputs error level debug information.
@@ -126,7 +126,7 @@ void purple_debug_warning(const char *ca
*
* @see purple_debug()
*/
-void purple_debug_error(const char *category, const char *format, ...);
+void purple_debug_error(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3);
/**
* Outputs fatal error level debug information.
@@ -139,7 +139,7 @@ void purple_debug_error(const char *cate
*
* @see purple_debug()
*/
-void purple_debug_fatal(const char *category, const char *format, ...);
+void purple_debug_fatal(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3);
/**
* Enable or disable printing debug output to the console.
More information about the Commits
mailing list