Skip to content

Commit 8f58361

Browse files
authored
Merge pull request #16905 from mikeash/fix-swift-reflection-test-warning-4.2
[Tests][4.2] Fix an unused function warning for PipeMemoryReader_receiveReflectionInfo in swift-reflection-test.c.
2 parents 2899ca8 + e6e3384 commit 8f58361

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)