diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-01 12:54:16 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-01 12:56:02 -0700 |
commit | 92b565d9f9829cc0b47d019d336ef664d3f013e2 (patch) | |
tree | 03a4b3d71a700227ab230f86647a3028c0fe5590 | |
parent | 103579f030bfead4a1f821734dd6dbaf823c5527 (diff) |
args_copy variable is unused if HAVE_DECL_VA_COPY is not defined
Found by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -100,7 +100,9 @@ vsprintf_alloc(const char *f, va_list args) { int n, size = 12; char *string; +#if HAVE_DECL_VA_COPY va_list args_copy; +#endif while(1) { if(size > 4096) |