HomeFreeBSD

textproc/opensp: fix build with clang 16

Description

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

Details

Provenance
dimAuthored on Jun 5 2023, 9:00 PM
Parents
R11:b130e0cfc6d7: audio/py-pyradio: Update to 0.9.2.7
Branches
Unknown
Tags
Unknown