Quiet warning if Makefile.PL is run with -w and no --localedir
authorMichael G. Schwern <schwern@pobox.com>
Wed, 25 Jul 2012 03:21:09 +0000 (20:21 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 27 Jul 2012 22:13:25 +0000 (22:13 +0000)
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>
perl/Makefile.PL

index b54b04a619b0aa338cae37ade9350bb52f2edd05..87e1f62ff891e4e6e82ccef517c8ee8735012c70 100644 (file)
@@ -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';