ports/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx
Jan Beich 9c227d0a1c 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
2017-02-01 05:24:20 +00:00

11 lines
394 B
C++

--- 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) ++;