Mercurial > pidgin.yaz
changeset 22474:9511acb88e58
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.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 Mar 2008 20:35:23 +0000 |
parents | 7a815907ba5a |
children | 3225c99785b8 |
files | libpurple/debug.h |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/debug.h Sat Mar 15 19:41:30 2008 +0000 +++ b/libpurple/debug.h Sun Mar 16 20:35:23 2008 +0000 @@ -74,7 +74,7 @@ * @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 @@ * * @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 @@ * * @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 @@ * * @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 @@ * * @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 @@ * * @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.