From 4f3e04fd00ec110463294220e80bbf405b50c3ff Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Sun, 31 Jan 2016 00:14:11 +0100 Subject: [PATCH] mg.c: move declaration of i closer to its use This should avoid the "unused variable 'i'" warning that pops up in some configurations. --- mg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg.c b/mg.c index bb5cba1..4321a40 100644 --- a/mg.c +++ b/mg.c @@ -2577,7 +2577,6 @@ S_set_dollarzero(pTHX_ SV *sv) #endif const char *s; STRLEN len; - I32 i; #ifdef HAS_SETPROCTITLE /* The BSDs don't show the argv[] in ps(1) output, they * show a string from the process struct and provide @@ -2610,6 +2609,7 @@ S_set_dollarzero(pTHX_ SV *sv) } #else if (PL_origalen > 1) { + I32 i; /* PL_origalen is set in perl_parse(). */ s = SvPV_force(sv,len); if (len >= (STRLEN)PL_origalen-1) { -- 1.8.3.1