Skip to content

Commit b432249

Browse files
committed
stubs: silence pedantic warning (NFC)
C requires that there is at least one declaration in a translation unit. Because this file is ObjC and not ObjC++, this restriction applies. Add a declaration to silence the warning in the case that ObjC interop is disabled.
1 parent a1eb1fe commit b432249

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/stubs/SwiftNativeNSXXXBaseARC.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,8 @@ size_t swift_stdlib_NSStringHashValue(NSString *SWIFT_NS_RELEASES_ARGUMENT str,
8282
}
8383
}
8484

85+
#else
86+
87+
extern char ignore_pedantic_warning;
88+
8589
#endif

0 commit comments

Comments
 (0)