mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
tests/server: use CURL_PRINTF(), drop -Wformat-nonliteral workaround
Closes #20286
This commit is contained in:
parent
236c7d3c4d
commit
80739fa89d
2 changed files with 1 additions and 8 deletions
|
|
@ -111,14 +111,7 @@ void logmsg(const char *msg, ...)
|
|||
now.tm_hour, now.tm_min, now.tm_sec, (long)tv.tv_usec);
|
||||
|
||||
va_start(ap, msg);
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
vsnprintf(buffer, sizeof(buffer), msg, ap);
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
va_end(ap);
|
||||
|
||||
do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue