Skip to content

Commit 53e039b

Browse files
Merge pull request #17944 from ktopley-apple/ktopley-oslog-rdar40626177
Fix warning for uninitialized va_list variable.
2 parents baa7cbd + fc08a12 commit 53e039b

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)