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/ChangeLog | 4 ++++ camel/camel-exception.c | 14 ++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index a074fde7a1..b35407a970 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,7 @@ +2004-04-01 Jeffrey Stedfast + + * camel-exception.c (w): Wrap annoying exeption warnings with w(). + 2004-03-30 Jeffrey Stedfast * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): 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 v1.2.3