[Bug 261949] www/qt5-webengine: Fix build with clang 14

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Feb 2022 17:05:13 UTC

            Bug ID: 261949
           Summary: www/qt5-webengine: Fix build with clang 14
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

During an exp-run for llvm 14 (see bug 261742), it turned out that
www/qt5-webengine fails to build with clang 14:

In file included from
error: anonymous non-C-compatible type given name for linkage purposes by
typedef declaration after its linkage was computed; add a tag name here to
establish linkage prior to definition
typedef struct {
note: type is not C-compatible due to this member declaration
note: expanded from macro 'DISALLOW_NEW'
 public:                                                                      \
note: type is given name 'UTextWithBuffer' for linkage purposes by this typedef
} UTextWithBuffer;

This is because the typedef isn't compatible with C++ as written. Instead of:

typedef struct { ... } UTextWithBuffer;

it should just be:

struct UTextWithBuffer { ... };

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