[webkit-changes] [WebKit/WebKit] 68b735: DataDetection.mm fails to build with newer clang w...

EWS noreply at github.com
Sat Dec 10 15:02:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 68b73575a9aa740856dde6a891945e21a4a8b207
      https://github.com/WebKit/WebKit/commit/68b73575a9aa740856dde6a891945e21a4a8b207
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2022-12-10 (Sat, 10 Dec 2022)

  Changed paths:
    M Source/WebCore/editing/cocoa/DataDetection.mm

  Log Message:
  -----------
  DataDetection.mm fails to build with newer clang when initializing DDQueryOffset
https://bugs.webkit.org/show_bug.cgi?id=249078
<rdar://problem/103217701>

Unreviewed build fix.

Use designated initializers to fix this warning:

    DataDetection.mm:549:53: error: missing field 'offset' initializer [-Werror,-Wmissing-field-initializers]

* Source/WebCore/editing/cocoa/DataDetection.mm:
(WebCore::DataDetection::detectContentInRange):
- Switch to using designated initializers for DDQueryOffset.

Canonical link: https://commits.webkit.org/257687@main




More information about the webkit-changes mailing list