aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-exception.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-02 05:37:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-02 05:37:33 +0800
commitd197dcae41b9b7f2338f44627a4c16d2f9c4901a (patch)
tree6ab5181d51d541c0850b0f95a6358312711d5a3c /camel/camel-exception.c
parente0f8febd78facee97682c102b0dbdc98d65c2189 (diff)
downloadgsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.tar
gsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.tar.gz
gsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.tar.bz2
gsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.tar.lz
gsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.tar.xz
gsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.tar.zst
gsoc2013-evolution-d197dcae41b9b7f2338f44627a4c16d2f9c4901a.zip
Wrap annoying exeption warnings with w().
2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * camel-exception.c (w): Wrap annoying exeption warnings with w(). svn path=/trunk/; revision=25288
Diffstat (limited to 'camel/camel-exception.c')
-rw-r--r--camel/camel-exception.c14
1 files changed, 8 insertions, 6 deletions
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;
}