Skip to content

Commit

Permalink
Quiet warning if Makefile.PL is run with -w and no --localedir
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael G. Schwern authored and Eric Wong committed Jul 27, 2012
1 parent cdd159b commit 4c8e5c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion perl/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 4c8e5c5

Please sign in to comment.