From: Michael G. Schwern Date: Wed, 25 Jul 2012 03:21:09 +0000 (-0700) Subject: Quiet warning if Makefile.PL is run with -w and no --localedir X-Git-Tag: v1.7.12-rc1~10^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016;p=git.git 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 Signed-off-by: Junio C Hamano Signed-off-by: Eric Wong --- diff --git a/perl/Makefile.PL b/perl/Makefile.PL index b54b04a61..87e1f62ff 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -6,7 +6,8 @@ use Getopt::Long; # Sanity: die at first unknown option Getopt::Long::Configure qw/ pass_through /; -GetOptions("localedir=s" => \my $localedir); +my $localedir = ''; +GetOptions("localedir=s" => \$localedir); sub MY::postamble { return <<'MAKE_FRAG';