Skip to content

Commit d3305af

Browse files
committed
NFC: Ignore -Wreceiver-forward-class warning in SwiftObject.mm.
1 parent 5add794 commit d3305af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/runtime/SwiftObject.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,10 @@ static bool isObjCForUnownedReference(void *value) {
11711171
if (object == nullptr)
11721172
return nullptr;
11731173

1174+
#pragma clang diagnostic push
1175+
#pragma clang diagnostic ignored "-Wreceiver-forward-class"
11741176
if ([id_const_cast(object) isKindOfClass:[__SwiftValue class]]) {
1177+
#pragma clang diagnostic pop
11751178
// Source is a `__SwiftValue` container
11761179
// Unwrap, then use the most general casting machine to do the heavy lifting
11771180
auto typeValue = getValueFromSwiftValue(reinterpret_cast<__SwiftValue *>(object));

0 commit comments

Comments
 (0)