Bug 280919

Summary: REGRESSION(284709@main): [Clang 18] error: 'suppress' attribute only applies to variables and statements
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: New BugsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=280906

Fujii Hironori
Reported 2024-10-04 16:45:55 PDT
Windows port can't compile after 284709@main Buildbot: builder Windows-64-bit-Release-Build build 778 : 284709@main https://build.webkit.org/#/builders/1192/builds/778 In file included from C:\BW\Windows-64-bit-Release-Build\build\WebKitBuild\Release\WebKit\DerivedSources\RemoteBindGroupLayoutMessageReceiver.cpp:27: C:\BW\Windows-64-bit-Release-Build\build\Source\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(); } | ^ C:\BW\Windows-64-bit-Release-Build\build\WebKitBuild\Release\WTF\Headers\wtf\Compiler.h(547,5): note: expanded from macro 'SUPPRESS_UNCOUNTED_ARG' 547 | IGNORE_CLANG_STATIC_ANALYZER_WARNINGS_ATTRIBUTE("alpha.webkit.UncountedCallArgsChecker") | ^ C:\BW\Windows-64-bit-Release-Build\build\WebKitBuild\Release\WTF\Headers\wtf\Compiler.h(506,73): note: expanded from macro 'IGNORE_CLANG_STATIC_ANALYZER_WARNINGS_ATTRIBUTE' 506 | #define IGNORE_CLANG_STATIC_ANALYZER_WARNINGS_ATTRIBUTE(warning, ...) [[clang::suppress]] | ^
Attachments
Fujii Hironori
Comment 1 2024-10-04 17:27:19 PDT
This is a similar issue with bug#274484.
Fujii Hironori
Comment 2 2024-10-04 17:35:19 PDT
EWS
Comment 3 2024-10-04 19:13:25 PDT
Committed 284720@main (4a1d16f6ea01): <https://commits.webkit.org/284720@main> Reviewed commits have been landed. Closing PR #34730 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2024-10-04 19:14:15 PDT
Note You need to log in before you can comment on or make changes to this bug.