Skip to content

Commit 137adcd

Browse files
committed
[Tests] Fix an unused function warning for PipeMemoryReader_receiveReflectionInfo in swift-reflection-test.c.
rdar://problem/40626086
1 parent 8151350 commit 137adcd

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)