Skip to content

Commit 5add794

Browse files
committed
NFC: Ignore -Wobjc-root-class warning in SwiftObject.h.
SwiftObject intentionally does not inherit from `NSObject`.
1 parent 582c0de commit 5add794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/runtime/SwiftObject.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
// Real class name: mangled "Swift._SwiftObject"
3636
#define SwiftObject _TtCs12_SwiftObject
3737

38+
#pragma clang diagnostic push
39+
#pragma clang diagnostic ignored "-Wobjc-root-class"
3840
#if __has_attribute(objc_root_class)
3941
__attribute__((__objc_root_class__))
4042
#endif
@@ -43,6 +45,7 @@ SWIFT_RUNTIME_EXPORT @interface SwiftObject<NSObject> {
4345
Class isa;
4446
SWIFT_HEAPOBJECT_NON_OBJC_MEMBERS;
4547
}
48+
#pragma clang diagnostic pop
4649

4750
- (BOOL)isEqual:(id)object;
4851
- (NSUInteger)hash;

0 commit comments

Comments
 (0)