You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling the argtable3.c file produced by tools/build dist (as of fe70fd5) with gcc version 10.2.0, I get the following warning:
$ cc --version
cc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cc -Wall -Wextra -pedantic -ansi -c argtable3.c
argtable3.c: In function 'arg_dstr_catf':
argtable3.c:1104:13: warning: implicit declaration of function 'vsnprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
1104 | r = vsnprintf(buff, n + 1, fmt, arglist);
| ^~~~~~~~~
| vsprintf
From the man page, vsnprintf seems to only be available starting from C99
The text was updated successfully, but these errors were encountered:
Kerl13
added a commit
to Kerl13/randdag
that referenced
this issue
Nov 29, 2020
@Kerl13 , you're right, vsnprintf seems to be a new C standard function. Would you mind providing a patch, so that it can work in older compilers? Thanks.
When compiling the
argtable3.c
file produced bytools/build dist
(as of fe70fd5) with gcc version 10.2.0, I get the following warning:From the man page,
vsnprintf
seems to only be available starting from C99The text was updated successfully, but these errors were encountered: