Skip to content

Commit 912b7c6

Browse files
committed
Solve warning.
1 parent 1e3209e commit 912b7c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plthook_win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,15 @@ const char *plthook_error(void)
379379
return errbuf;
380380
}
381381

382-
static void set_errmsg(const char *fmt, ...)
382+
static void set_errmsg(_Printf_format_string_ const char *fmt, ...)
383383
{
384384
va_list ap;
385385
va_start(ap, fmt);
386386
vsnprintf(errbuf, sizeof(errbuf) - 1, fmt, ap);
387387
va_end(ap);
388388
}
389389

390-
static void set_errmsg2(const char *fmt, ...)
390+
static void set_errmsg2(_Printf_format_string_ const char *fmt, ...)
391391
{
392392
va_list ap;
393393
size_t len;

0 commit comments

Comments
 (0)