[webkit-changes] [WebKit/WebKit] 1a9763: Ignore -Wunsafe-buffer-usage-in-libc-call warnings...

Commit Queue noreply at github.com
Fri Oct 25 16:48:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1a97633eac49ebe67f7891f0c00046bf42222f42
      https://github.com/WebKit/WebKit/commit/1a97633eac49ebe67f7891f0c00046bf42222f42
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2024-10-25 (Fri, 25 Oct 2024)

  Changed paths:
    M Configurations/CommonBase.xcconfig
    M Source/WebGPU/Configurations/Base.xcconfig
    M Source/WebKit/Configurations/Base.xcconfig

  Log Message:
  -----------
  Ignore -Wunsafe-buffer-usage-in-libc-call warnings when -Wunsafe-buffer-usage is enabled
<https://bugs.webkit.org/show_bug.cgi?id=282100>
<rdar://138642975>

Reviewed by Geoffrey Garen.

The -Wunsafe-buffer-usage warning also enables the
-Wunsafe-buffer-usage-in-libc-call warning, but those need a separate
pass to resolve, so turn them off for now.

* Configurations/CommonBase.xcconfig:
(WK_NO_UNSAFE_BUFFER_USAGE_IN_LIBC_CALL): Add.
- Define a build setting to disable the
  -Wunsafe-buffer-usage-in-libc-call warning.
* Source/WebGPU/Configurations/Base.xcconfig:
(WARNING_CFLAGS):
- Add $(WK_NO_UNSAFE_BUFFER_USAGE_IN_LIBC_CALL) since
  -Wunsafe-buffer-usage is enabled for this project.
* Source/WebKit/Configurations/Base.xcconfig:
(WARNING_CFLAGS):
- Ditto.

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