aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-02-14 12:55:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-02-15 18:19:54 +0000
commit0825e7bc64e47d87e1f1026cc80c933550f114f5 (patch)
treee11546a2e41bd3aac3c21410c6d76e4b4e1e0d47
parent03949a77485f49fea02fd036622f91d1c1004671 (diff)
downloadports-0825e7bc64e47d87e1f1026cc80c933550f114f5.tar.gz
ports-0825e7bc64e47d87e1f1026cc80c933550f114f5.zip
www/qt5-webengine: fix build with clang 14
Fixes compile error: In file included from gen/third_party/blink/renderer/platform/platform_jumbo_63.cc:8: ./../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc:122:15: 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 { ^ UTextWithBuffer ./../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc:123:3: note: type is not C-compatible due to this member declaration DISALLOW_NEW(); ^~~~~~~~~~~~~~ ../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/wtf/allocator/allocator.h:40:2: note: expanded from macro 'DISALLOW_NEW' public: \ ^~~~~~~ ./../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc:126:3: note: type is given name 'UTextWithBuffer' for linkage purposes by this typedef declaration } UTextWithBuffer; ^ PR: 261949 Approved by: adridg (maintainer) MFH: 2022Q1
-rw-r--r--www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_text_text__break__iterator__icu.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_text_text__break__iterator__icu.cc b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_text_text__break__iterator__icu.cc
new file mode 100644
index 000000000000..b6e3b69182c8
--- /dev/null
+++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_text_text__break__iterator__icu.cc
@@ -0,0 +1,16 @@
+--- src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc.orig 2020-11-07 01:22:36 UTC
++++ src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc
+@@ -119,11 +119,11 @@ enum TextContext { kNoContext, kPriorContext, kPrimary
+
+ const int kTextBufferCapacity = 16;
+
+-typedef struct {
++struct UTextWithBuffer {
+ DISALLOW_NEW();
+ UText text;
+ UChar buffer[kTextBufferCapacity];
+-} UTextWithBuffer;
++};
+
+ static inline int64_t TextPinIndex(int64_t& index, int64_t limit) {
+ if (index < 0)