textproc/jtc: unbreak with clang 10.0.0

Additionally, use PORTVERSION instead of DISTVERSION

PR:	244797
Submitted by:	vulcan@wired.sh (maintainer)
This commit is contained in:
Fernando Apesteguía
2020-03-18 07:02:14 +00:00
parent 308ce63a84
commit c48efe2494
2 changed files with 12 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= jtc
DISTVERSION= 1.75d
PORTVERSION= 1.75d
CATEGORIES= textproc
MAINTAINER= vulcan@wired.sh

View File

@@ -0,0 +1,11 @@
--- lib/Json.hpp.orig 2020-03-13 20:36:36 UTC
+++ lib/Json.hpp
@@ -1189,8 +1189,6 @@ class Jnode::Iterator: public std::iterator<std::bidir
SuperJnode & operator()(const std::string &s, Jnode &jn)
{ lbp_ = &s; jnp_ = &jn; return *this; }
- const SuperJnode & operator()(const std::string &s, const Jnode &jn) const
- { lbp_ = &s; jnp_ = &jn; return *this; }
const std::string * lbp_{nullptr}; // pointer to a label string
Jnode * jnp_{nullptr}; // resolved Jnode pointer