1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

textproc/opensp: fix build with clang 16

Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because textproc/opensp's build infrastructure does not explicitly set
its C++ standard, this leads to an error:

  Recognizer.cxx:42:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    register const Trie *pos = trie_.pointer();
    ^~~~~~~~~

To work around the error, define the register keyword away using
CPPFLAGS.

PR:		271851
Approved by:	fernape
MFH:		2023Q2
This commit is contained in:
Dimitry Andric 2023-06-05 23:00:15 +02:00
parent b130e0cfc6
commit af011365cf

View File

@ -1,6 +1,6 @@
PORTNAME= OpenSP
PORTVERSION= 1.5.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= SF/openjade/${PORTNAME:tl}/${PORTVERSION}
@ -20,6 +20,8 @@ CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \
--datadir=${PREFIX}/share/sgml/openjade \
--disable-doc-build
CPPFLAGS+= -Dregister=
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls