[Bug 271494] textproc/jade: fix build with clang 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 May 2023 15:46:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271494

            Bug ID: 271494
           Summary: textproc/jade: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: cy@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)

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

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

Add USE_CXXSTD=gnu++98 to compile for C++98 with GNU extensions instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.