summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-01 12:54:16 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-01 12:56:02 -0700
commit92b565d9f9829cc0b47d019d336ef664d3f013e2 (patch)
tree03a4b3d71a700227ab230f86647a3028c0fe5590
parent103579f030bfead4a1f821734dd6dbaf823c5527 (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index 32460b1..5a2f0e5 100644
--- a/util.c
+++ b/util.c
@@ -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)