Skip to content

Commit e6e3384

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

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,
@@ -366,6 +367,7 @@ PipeMemoryReader_receiveReflectionInfo(SwiftReflectionContextRef RC,
366367

367368
free(RemoteInfos);
368369
}
370+
#endif
369371

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

0 commit comments

Comments
 (0)