Skip to content

Commit b557825

Browse files
authored
Merge pull request #16904 from mikeash/fix-swift-reflection-test-warning
[Tests] Fix an unused function warning for PipeMemoryReader_receiveReflectionInfo in swift-reflection-test.c.
2 parents bfd10bd + 137adcd commit b557825

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/swift-reflection-test/swift-reflection-test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ PipeMemoryReader_receiveImages(SwiftReflectionContextRef RC,
308308

309309
free(Images);
310310
}
311-
#endif
311+
312+
#else
312313

313314
static void
314315
PipeMemoryReader_receiveReflectionInfo(SwiftReflectionContextRef RC,
@@ -365,6 +366,7 @@ PipeMemoryReader_receiveReflectionInfo(SwiftReflectionContextRef RC,
365366

366367
free(RemoteInfos);
367368
}
369+
#endif
368370

369371
uint64_t PipeMemoryReader_getStringLength(void *Context, swift_addr_t Address) {
370372
const PipeMemoryReader *Reader = (const PipeMemoryReader *)Context;

0 commit comments

Comments
 (0)