[gmime] Disable warnings in the html filter
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Disable warnings in the html filter
- Date: Sat, 23 Feb 2013 14:42:39 +0000 (UTC)
commit 0884a9dbd5db7dd39b1c2b887b8578ee9164607e
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sat Feb 23 09:40:17 2013 -0500
Disable warnings in the html filter
2013-02-23 Jeffrey Stedfast <fejj gnome org>
* gmime/gmime-filter-html.c: Disable g_warnings unless warnings
are enabled in the build.
ChangeLog | 5 +++++
gmime/gmime-filter-html.c | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fec6e56..0eeeed5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-23 Jeffrey Stedfast <fejj gnome org>
+
+ * gmime/gmime-filter-html.c: Disable g_warnings unless warnings
+ are enabled in the build.
+
2013-02-19 Jeffrey Stedfast <fejj gnome org>
* README: Bumped version
diff --git a/gmime/gmime-filter-html.c b/gmime/gmime-filter-html.c
index 75c0fc1..c96a812 100644
--- a/gmime/gmime-filter-html.c
+++ b/gmime/gmime-filter-html.c
@@ -29,6 +29,12 @@
#include "url-scanner.h"
#include "gmime-filter-html.h"
+#ifdef ENABLE_WARNINGS
+#define w(x) x
+#else
+#define w(x)
+#endif /* ENABLE_WARNINGS */
+
#define d(x)
@@ -254,7 +260,7 @@ writeln (GMimeFilter *filter, const char *in, const char *end, char *outptr, cha
u = html_utf8_getc (&inptr, inend);
switch (u) {
case 0xffff:
- g_warning ("Invalid UTF-8 sequence encountered");
+ w(g_warning ("Invalid UTF-8 sequence encountered"));
return outptr;
break;
case '<':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]