Skip to content

Commit fc08a12

Browse files
committed
Fix warning for uninitialized va_list variable.
rdar://problem/40626177
1 parent 456952e commit fc08a12

File tree

1 file changed

+1
-1
lines changed
  • stdlib/public/SDK/os

1 file changed

+1
-1
lines changed

stdlib/public/SDK/os/os.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@
161161
const char * _Nonnull spnm,
162162
os_signpost_id_t spid)
163163
{
164-
va_list x;
164+
static va_list x;
165165
_swift_os_signpost_with_format(dso, ra, h, spty, spnm, spid, NULL, x);
166166
}

0 commit comments

Comments
 (0)