Skip to content

Commit cf9208d

Browse files
committed
Fix warnings in the test
1 parent 201dcba commit cf9208d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/stdlib/VarArgs.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ typealias CGFloat = Double
1212
#endif
1313

1414
func my_printf(_ format: String, _ arguments: CVarArg...) {
15-
withVaList(arguments) {
15+
_ = withVaList(arguments) {
1616
vprintf(format, $0)
1717
}
1818
}
@@ -36,7 +36,7 @@ func test_varArgs1() {
3636
}
3737

3838
// CHECK: dig it: 0 0 -1 1 -2 2 -3 3 -4 4 -5 5 -6 6 -7 7 -8 8 -9 9 -10 10 -11 11
39-
withVaList(args) {
39+
_ = withVaList(args) {
4040
vprintf(format + "\n", $0)
4141
}
4242
}
@@ -60,7 +60,7 @@ func test_varArgs3() {
6060
#endif
6161

6262
// CHECK: {{pointers: '(0x)?0*12345670' '(0x)?0*12345671' '(0x)?0*12345672' '(0x)?0*12345673' '(0x)?0*12345674'}}
63-
withVaList(args) {
63+
_ = withVaList(args) {
6464
vprintf(format, $0)
6565
}
6666
}

0 commit comments

Comments
 (0)