Summary: | Add -Wno-availability to WARNING_FLAGS when building with clang static analyzer | ||
---|---|---|---|
Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
Component: | Tools / Tests | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | emw, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=267973 |
Description
David Kilzer (:ddkilzer)
2024-01-09 07:45:52 PST
Pull request: https://github.com/WebKit/WebKit/pull/22550 > WebKitBuild/Release/usr/local/include/pal/spi/cocoa/AVFoundationSPI.h:440:94: error: unknown platform 'iosmac' in availability macro [-Werror,-Wavailability] > 440 | - (instancetype)initWithAssumedIdentity:(tcc_identity_t)tccIdentity SPI_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst, watchos, tvos); > | ^ It's weird that this is complaining about "iosmac" when the declaration says "macCatalyst". Upstream clang does appear to know about "maccatalyst": https://github.com/llvm/llvm-project/blob/a1dc813f759955ddbcf9b12ed052dfc8a07fdf4a/clang/include/clang/Basic/Attr.td#L974C29-L974C29 Ah, usr/include/AvailabilityInternal.h is rewrites "macCatalyst" to "iosmac" in the internal SDK only. I've filed rdar://120799823 with more information. (Re-posting <rdar://problem/120711320> to make the bug importer happy.) Not going to land this fix. See the PR for details (this is not a supported configuration): <https://github.com/WebKit/WebKit/pull/22550#issuecomment-1886077808> |