aboutsummaryrefslogtreecommitdiffstats
path: root/camel
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
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')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-exception.c14
2 files changed, 12 insertions, 6 deletions
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 <fejj@ximian.com>
+
+ * camel-exception.c (w): Wrap annoying exeption warnings with w().
+
2004-03-30 Jeffrey Stedfast <fejj@ximian.com>
* 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;
}