We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201dcba commit cf9208dCopy full SHA for cf9208d
test/stdlib/VarArgs.swift
@@ -12,7 +12,7 @@ typealias CGFloat = Double
12
#endif
13
14
func my_printf(_ format: String, _ arguments: CVarArg...) {
15
- withVaList(arguments) {
+ _ = withVaList(arguments) {
16
vprintf(format, $0)
17
}
18
@@ -36,7 +36,7 @@ func test_varArgs1() {
36
37
38
// 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) {
+ _ = withVaList(args) {
40
vprintf(format + "\n", $0)
41
42
@@ -60,7 +60,7 @@ func test_varArgs3() {
60
61
62
// CHECK: {{pointers: '(0x)?0*12345670' '(0x)?0*12345671' '(0x)?0*12345672' '(0x)?0*12345673' '(0x)?0*12345674'}}
63
64
65
66
0 commit comments