OSDN Git Service

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 b54b04a..87e1f62 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';