aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-01 13:24:20 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-01 13:24:20 +0800
commit1af6c9aad5c077080622aa70d27f61ae827fd895 (patch)
tree210d9714fe7fffc3e0efa298b4aff3138950c906
parent8376f740ab14c8924d9e278eba46ad8408b60997 (diff)
downloadfreebsd-ports-gnome-1af6c9aad5c077080622aa70d27f61ae827fd895.tar.gz
freebsd-ports-gnome-1af6c9aad5c077080622aa70d27f61ae827fd895.tar.zst
freebsd-ports-gnome-1af6c9aad5c077080622aa70d27f61ae827fd895.zip
textproc/htmldoc: unbreak with clang 4.0
htmlsep.cxx:527:19: error: ordered comparison between pointer and zero ('int *' and 'int') if (heading >= 0) ~~~~~~~ ^ ~ PR: 216159 Reported by: antoine (via exp-run) Approved by: portmgr blanket
-rw-r--r--textproc/htmldoc/Makefile2
-rw-r--r--textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx11
2 files changed, 12 insertions, 1 deletions
diff --git a/textproc/htmldoc/Makefile b/textproc/htmldoc/Makefile
index efe94bbf8f5e..46cdd450d3ca 100644
--- a/textproc/htmldoc/Makefile
+++ b/textproc/htmldoc/Makefile
@@ -3,7 +3,7 @@
PORTNAME= htmldoc
PORTVERSION= 1.8.28
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://www.msweet.org/files/project1/ \
EASYSW/${PORTNAME}/${PORTVERSION}
diff --git a/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx b/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx
new file mode 100644
index 000000000000..2b70322610ec
--- /dev/null
+++ b/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx
@@ -0,0 +1,11 @@
+--- htmldoc/htmlsep.cxx.orig 2013-08-09 13:43:34 UTC
++++ htmldoc/htmlsep.cxx
+@@ -524,7 +524,7 @@ write_doc(FILE **out, // I - Output
+ if (t->markup >= MARKUP_H1 && t->markup < (MARKUP_H1 + TocLevels) &&
+ htmlGetVariable(t, (uchar *)"_HD_OMIT_TOC") == NULL)
+ {
+- if (heading >= 0)
++ if (*heading >= 0)
+ write_footer(out, *heading);
+
+ (*heading) ++;