diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:28:00 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:28:00 +0800 |
commit | 78b6ba06e79e55eeaba471a56a61dade1e49b73c (patch) | |
tree | 6ff8044a980df8f013c1ad2071d94b1fb5d072f1 /graphics | |
parent | 7bdbfd99da4fc2baae80c9663843ec6299df5c0f (diff) | |
download | freebsd-ports-gnome-78b6ba06e79e55eeaba471a56a61dade1e49b73c.tar.gz freebsd-ports-gnome-78b6ba06e79e55eeaba471a56a61dade1e49b73c.tar.zst freebsd-ports-gnome-78b6ba06e79e55eeaba471a56a61dade1e49b73c.zip |
graphics/swfmill: unbreak with clang 4.0
gSWFParseXML.cpp:19:10: error: ordered comparison between pointer and zero ('iconv_t'
(aka '__tag_iconv_t *') and 'int')
if (cd < 0) {
~~ ^ ~
gSWFWriteXML.cpp:15:10: error: ordered comparison between pointer and zero ('iconv_t'
(aka '__tag_iconv_t *') and 'int')
if (cd < 0) {
~~ ^ ~
Reported by: antoine (via exp-run)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/swfmill/Makefile | 2 | ||||
-rw-r--r-- | graphics/swfmill/files/patch-src_codegen_parsexml.xsl | 11 | ||||
-rw-r--r-- | graphics/swfmill/files/patch-src_codegen_writexml.xsl | 11 |
3 files changed, 23 insertions, 1 deletions
diff --git a/graphics/swfmill/Makefile b/graphics/swfmill/Makefile index ab1f3bd7f961..69d6f42836ea 100644 --- a/graphics/swfmill/Makefile +++ b/graphics/swfmill/Makefile @@ -3,7 +3,7 @@ PORTNAME= swfmill PORTVERSION= 0.3.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= http://swfmill.org/releases/ diff --git a/graphics/swfmill/files/patch-src_codegen_parsexml.xsl b/graphics/swfmill/files/patch-src_codegen_parsexml.xsl new file mode 100644 index 000000000000..15222ae2e414 --- /dev/null +++ b/graphics/swfmill/files/patch-src_codegen_parsexml.xsl @@ -0,0 +1,11 @@ +--- src/codegen/parsexml.xsl.orig 2013-10-30 17:33:35 UTC
++++ src/codegen/parsexml.xsl
+@@ -19,7 +19,7 @@ char *fromXmlChar(const Context *ctx, co
+ if (ctx->convertEncoding) {
+ size_t len = strlen((const char *)from_str);
+ iconv_t cd = iconv_open(ctx->swf_encoding, "UTF-8");
+- if (cd < 0) {
++ if (cd == NULL) {
+ fprintf(stderr, "iconv_open failed.\n");
+ char *buf = new char[1];
+ buf[0] = '\0';
diff --git a/graphics/swfmill/files/patch-src_codegen_writexml.xsl b/graphics/swfmill/files/patch-src_codegen_writexml.xsl new file mode 100644 index 000000000000..48f689e25996 --- /dev/null +++ b/graphics/swfmill/files/patch-src_codegen_writexml.xsl @@ -0,0 +1,11 @@ +--- src/codegen/writexml.xsl.orig 2013-10-30 17:33:35 UTC
++++ src/codegen/writexml.xsl
+@@ -15,7 +15,7 @@ xmlChar *toXmlChar(const Context *ctx, c
+ if (ctx->convertEncoding) {
+ size_t len = strlen(from_str);
+ iconv_t cd = iconv_open("UTF-8", ctx->swf_encoding);
+- if (cd < 0) {
++ if (cd == NULL) {
+ fprintf(stderr, "iconv_open failed.\n");
+ return xmlCharStrdup("");
+ }
|