[Bug 280590] devel/simdjson: fix build with clang 19

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Aug 2024 14:04:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280590

            Bug ID: 280590
           Summary: devel/simdjson: fix build with clang 19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: olevole@olevole.ru
                CC: olevole@olevole.ru
             Flags: maintainer-feedback?(olevole@olevole.ru)

With clang 19, if a port uses simdjson.h, it leads to compile errors:

    In file included from
/wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202405/src/pcm-raw.cpp:31:
    /usr/local/include/simdjson.h:6156:13: error: no member named
'print_newline' in 'base_formatter<formatter>'
     6156 |       this->print_newline();
          |       ~~~~  ^
    /usr/local/include/simdjson.h:6160:13: error: no member named
'print_indents' in 'base_formatter<formatter>'
     6160 |       this->print_indents(depth);
          |       ~~~~  ^
    /usr/local/include/simdjson.h:6164:13: error: no member named 'print_space'
in 'base_formatter<formatter>'
     6164 |       this->print_space();
          |       ~~~~  ^

Upstream <https://github.com/simdjson/simdjson/commit/5d35e7ca> fixes
this, but it does not directly add the change to the generated single
header version of simdjson.h. So apply the fix to both the individual
header and the amalgamated version.

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