Skip to content

Commit 4c8e5c5

Browse files
schwernEric Wong
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Eric Wong <[email protected]>
1 parent cdd159b commit 4c8e5c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

perl/Makefile.PL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ use Getopt::Long;
66
# Sanity: die at first unknown option
77
Getopt::Long::Configure qw/ pass_through /;
88

9-
GetOptions("localedir=s" => \my $localedir);
9+
my $localedir = '';
10+
GetOptions("localedir=s" => \$localedir);
1011

1112
sub MY::postamble {
1213
return <<'MAKE_FRAG';

0 commit comments

Comments
 (0)