Quiet warning if Makefile.PL is run with -w and no --localedir
Usually it isn't, but its nice if it can be run with warnings on. Signed-off-by: Michael G Schwern <schwern@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Eric Wong <normalperson@yhbt.net>
Michael G. Schwern committed
Jul 24, 2012 at 20:21 UTC
4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016
1 file changed
+2
-1
perl/Makefile.PL
+2
-1
@@ -6,7 +6,8 @@ use Getopt::Long;
6
# Sanity: die at first unknown option
7
Getopt::Long::Configure qw/ pass_through /;
8
9
-GetOptions("localedir=s" => \my $localedir);
9
+my $localedir = '';
10
+GetOptions("localedir=s" => \$localedir);
11
12
sub MY::postamble {
13
return <<'MAKE_FRAG';