summaryrefslogtreecommitdiff
blob: 41784c919e1948fb9c2ba6b45a91e6d57fe81333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Use of $_ produces warnings which can cause build failures in certain consumers.

Backported from revision 1.4 upstream (http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm).

Gentoo-bug: 538012
Gentoo-bug: 545314
Gentoo-bug: 545322
Gentoo-bug: 545962

--- a/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm
+++ b/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm
@@ -91,7 +91,6 @@
 {
 	my ($class, $fh, $name) = @_;
 	my $cfg = $class->new;
-	my $_;
 
 	$name = '' if !defined $name;
 	while (<$fh>) {