From d197dcae41b9b7f2338f44627a4c16d2f9c4901a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 1 Apr 2004 21:37:33 +0000 Subject: Wrap annoying exeption warnings with w(). 2004-04-01 Jeffrey Stedfast * camel-exception.c (w): Wrap annoying exeption warnings with w(). svn path=/trunk/; revision=25288 --- camel/camel-exception.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'camel/camel-exception.c') diff --git a/camel/camel-exception.c b/camel/camel-exception.c index c67ab66c22..f6576e2afc 100644 --- a/camel/camel-exception.c +++ b/camel/camel-exception.c @@ -34,6 +34,8 @@ #include "camel-debug.h" +#define w(x) + /* i dont know why gthread_mutex stuff even exists, this is easier */ /* also, i'm not convinced mutexes are needed here. But it @@ -244,7 +246,7 @@ camel_exception_xfer (CamelException *ex_dst, CamelException *ex_src) { if (ex_src == NULL) { - g_warning ("camel_exception_xfer: trying to transfer NULL exception to %p\n", ex_dst); + w(g_warning ("camel_exception_xfer: trying to transfer NULL exception to %p\n", ex_dst)); return; } @@ -282,10 +284,10 @@ camel_exception_get_id (CamelException *ex) { if (ex) return ex->id; - else { - g_warning ("camel_exception_get_id called with NULL parameter."); - return CAMEL_EXCEPTION_NONE; - } + + w(g_warning ("camel_exception_get_id called with NULL parameter.")); + + return CAMEL_EXCEPTION_NONE; } /** @@ -306,7 +308,7 @@ camel_exception_get_description (CamelException *ex) if (ex) ret = ex->desc; else - g_warning ("camel_exception_get_description called with NULL parameter."); + w(g_warning ("camel_exception_get_description called with NULL parameter.")); return ret; } -- cgit