RESOLVED WONTFIX 279837
[WTF] Ignore -Welaborated-enum-base in CFStringSPI.h when building with external SDK and open source clang
https://bugs.webkit.org/show_bug.cgi?id=279837
Summary [WTF] Ignore -Welaborated-enum-base in CFStringSPI.h when building with exter...
David Kilzer (:ddkilzer)
Reported 2024-09-17 12:52:19 PDT
Fix -Welaborated-enum-base in CFStringSPI.h when building with external SDK and open source clang. WebKitBuild/Release/usr/local/include/wtf/spi/cf/CFStringSPI.h:39:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] 39 | typedef CF_ENUM(CFIndex, CFStringCharacterClusterType) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/WTF/wtf/text/cocoa/TextBreakIteratorInternalICUCocoa.cpp:25: In file included from Source/WTF/wtf/RetainPtr.h:33: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:54: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:21: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' 169 | #define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' 134 | #define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME | ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' 142 | #define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type | ^~~~~~~ 1 error generated.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-09-17 12:52:43 PDT
David Kilzer (:ddkilzer)
Comment 2 2024-09-17 12:56:09 PDT
David Kilzer (:ddkilzer)
Comment 3 2024-09-17 14:25:48 PDT
Note You need to log in before you can comment on or make changes to this bug.