summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miniperlmain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/miniperlmain.c b/miniperlmain.c
index 39f8f193cd..59d79b0b99 100644
--- a/miniperlmain.c
+++ b/miniperlmain.c
@@ -74,7 +74,9 @@ main(int argc, char **argv, char **env)
my_vars = my_plvarsp = plvarsp;
# endif
#endif /* PERL_GLOBAL_STRUCT */
- (void)env;
+#ifndef NO_ENV_ARRAY_IN_MAIN
+ PERL_UNUSED_ARG(env);
+#endif
#ifndef PERL_USE_SAFE_PUTENV
PL_use_safe_putenv = 0;
#endif /* PERL_USE_SAFE_PUTENV */