Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:24:20 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432965 - in head/textproc/htmldoc: . files
Message-ID:  <201702010524.v115OKig086186@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 05:24:20 2017
New Revision: 432965
URL: https://svnweb.freebsd.org/changeset/ports/432965

Log:
  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

Added:
  head/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx   (contents, props changed)
Modified:
  head/textproc/htmldoc/Makefile   (contents, props changed)

Modified: head/textproc/htmldoc/Makefile
==============================================================================
--- head/textproc/htmldoc/Makefile	Wed Feb  1 01:58:10 2017	(r432964)
+++ head/textproc/htmldoc/Makefile	Wed Feb  1 05:24:20 2017	(r432965)
@@ -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}

Added: head/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/htmldoc/files/patch-htmldoc_htmlsep.cxx	Wed Feb  1 05:24:20 2017	(r432965)
@@ -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) ++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702010524.v115OKig086186>