[webkit-changes] [WebKit/WebKit] c42264: REGRESSION(279061 at main): [clang 18] error: 'suppre...

Fujii Hironori noreply at github.com
Tue May 21 18:13:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c42264fb3ebd37e3c4e938d0d86d3d857a1853dd
      https://github.com/WebKit/WebKit/commit/c42264fb3ebd37e3c4e938d0d86d3d857a1853dd
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2024-05-21 (Tue, 21 May 2024)

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

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

Reviewed by Ryosuke Niwa.

After 279061 at main introduced SUPPRESS_UNCOUNTED_MEMBER and
SUPPRESS_REFCOUNTED_WITHOUT_VIRTUAL_DESTRUCTOR, Windows port couldn't
compile with clang-cl 18.

> UniquedStringImpl.h(34,7): error: 'suppress' attribute only applies to variables and statements
> StringConcatenate.h(266,5): error: 'suppress' attribute only applies to variables and statements

Clang 18 support 'suppress' attributes, but it can be applied only to
variables and statements.

Introduced IGNORE_CLANG_19_STATIC_ANALYZER_WARNINGS_ATTRIBUTE() macro
which works samely with IGNORE_CLANG_STATIC_ANALYZER_WARNINGS_ATTRIBUTE
only for Apple Clang and Clang>=19.

* Source/WTF/wtf/Compiler.h:

Canonical link: https://commits.webkit.org/279094@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