mirror of
https://github.com/curl/curl.git
synced 2026-08-06 13:46:14 +03:00
parent
e0b43c8eb9
commit
53678992d5
1 changed files with 7 additions and 0 deletions
|
|
@ -956,9 +956,16 @@ static int dprintf_formatf(
|
||||||
|
|
||||||
*fptr = 0; /* and a final zero termination */
|
*fptr = 0; /* and a final zero termination */
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||||
|
#endif
|
||||||
/* NOTE NOTE NOTE!! Not all sprintf implementations return number of
|
/* NOTE NOTE NOTE!! Not all sprintf implementations return number of
|
||||||
output characters */
|
output characters */
|
||||||
(sprintf)(work, formatbuf, p->data.dnum);
|
(sprintf)(work, formatbuf, p->data.dnum);
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
DEBUGASSERT(strlen(work) <= sizeof(work));
|
DEBUGASSERT(strlen(work) <= sizeof(work));
|
||||||
for(fptr = work; *fptr; fptr++)
|
for(fptr = work; *fptr; fptr++)
|
||||||
OUTCHAR(*fptr);
|
OUTCHAR(*fptr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue