From 52039d8f773b12b343fefe32df55d65fbde0424d Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Sun, 31 Jan 2016 00:16:53 +0100 Subject: util.c: fix/simplify unused arg logic in my_vsnprintf --- util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 7c42a1aa8c..7cd7d0e930 100644 --- a/util.c +++ b/util.c @@ -5270,13 +5270,11 @@ Perl_my_vsnprintf(char *buffer, const Size_t len, const char *format, va_list ap va_list apc; PERL_ARGS_ASSERT_MY_VSNPRINTF; -#ifndef HAS_VSNPRINTF - PERL_UNUSED_VAR(len); -#endif Perl_va_copy(ap, apc); # ifdef HAS_VSNPRINTF retval = vsnprintf(buffer, len, format, apc); # else + PERL_UNUSED_ARG(len); retval = vsprintf(buffer, format, apc); # endif va_end(apc); @@ -5284,6 +5282,7 @@ Perl_my_vsnprintf(char *buffer, const Size_t len, const char *format, va_list ap # ifdef HAS_VSNPRINTF retval = vsnprintf(buffer, len, format, ap); # else + PERL_UNUSED_ARG(len); retval = vsprintf(buffer, format, ap); # endif #endif /* #ifdef NEED_VA_COPY */ -- cgit v1.2.1