[webkit-changes] [WebKit/WebKit] 4a1d16: REGRESSION(284709 at main): [Clang 18] error: 'suppre...

Fujii Hironori noreply at github.com
Fri Oct 4 19:13:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4a1d16f6ea016189f32040c9b92e31c573b10084
      https://github.com/WebKit/WebKit/commit/4a1d16f6ea016189f32040c9b92e31c573b10084
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M Source/WTF/wtf/Compiler.h

  Log Message:
  -----------
  REGRESSION(284709 at main): [Clang 18] error: 'suppress' attribute only applies to variables and statements
https://bugs.webkit.org/show_bug.cgi?id=280919

Unreviewed build fix. Windows port couldn't compile with Clang 18 ater
<https://commits.webkit.org/284709@main>.

> WebKit\GPUProcess\graphics\WebGPU\RemoteBindGroupLayout.h(63,5): error: 'suppress' attribute only applies to variables and statements
>    63 |     SUPPRESS_UNCOUNTED_ARG std::optional<SharedPreferencesForWebProcess> sharedPreferencesForWebProcess() const { return m_gpu->sharedPreferencesForWebProcess(); }
>       |     ^

Clang 18 support 'suppress' attributes, but it can be applied only to
variables and statements. <https://commits.webkit.org/279094@main>
fixed a same problem.

* Source/WTF/wtf/Compiler.h:
Changed SUPPRESS_UNCOUNTED_ARG to use IGNORE_CLANG_STATIC_ANALYZER_WARNINGS_ATTRIBUTE_ON_MEMBER.

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list