mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r7861: Nicer output, remove some false warnings.
(This used to be commit f5587fe567
)
This commit is contained in:
parent
bdee131f30
commit
9e99838d5c
@ -62,13 +62,14 @@ sub cfile_parse($$$)
|
|||||||
|
|
||||||
open(FI, $in) or die("Can't open $in");
|
open(FI, $in) or die("Can't open $in");
|
||||||
my $ln = 0;
|
my $ln = 0;
|
||||||
foreach(<FI>) {
|
my $line;
|
||||||
|
foreach($line = <FI>) {
|
||||||
$ln++;
|
$ln++;
|
||||||
foreach(/\#([ \t]*)include ["<]([^">]+)/g) {
|
if ($line =~ /\#([ \t]*)include ["<]([^">]+)/) {
|
||||||
$headers->{$2} = "$in:$ln";
|
$headers->{$2} = "$in:$ln";
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(/([A-Za-z0-9_]+)/g) {
|
foreach($line =~ /([A-Za-z0-9_]+)/g) {
|
||||||
$symbols->{$1} = "$in:$ln";
|
$symbols->{$1} = "$in:$ln";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -100,10 +101,11 @@ foreach (keys %ac_defines) {
|
|||||||
(keys %ac_func_checks) or warn("No function checks found in configure.in file, parse error?");
|
(keys %ac_func_checks) or warn("No function checks found in configure.in file, parse error?");
|
||||||
|
|
||||||
foreach (keys %ac_func_checks) {
|
foreach (keys %ac_func_checks) {
|
||||||
|
my $def = "HAVE_".uc($_);
|
||||||
if (not defined($symbols{$_})) {
|
if (not defined($symbols{$_})) {
|
||||||
print "$ac_func_checks{$_}: Autoconf-checked function $_ is unused\n";
|
print "$ac_func_checks{$_}: Autoconf-checked function `$_' is unused\n";
|
||||||
} elsif (not defined($symbols{"HAVE_".uc($_)})) {
|
} elsif (not defined($symbols{$def})) {
|
||||||
print "$ac_func_checks{$_}: Autoconf-define for function $_ is unused\n";
|
print "$ac_func_checks{$_}: Autoconf-define `$def' for function `$_' is unused\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,8 +115,8 @@ foreach (keys %ac_headers) {
|
|||||||
my $def = "HAVE_".uc($_);
|
my $def = "HAVE_".uc($_);
|
||||||
$def =~ s/[\/\.]/_/g;
|
$def =~ s/[\/\.]/_/g;
|
||||||
if (not defined($headers{$_})) {
|
if (not defined($headers{$_})) {
|
||||||
print "$ac_headers{$_}: Autoconf-checked header $_ is unused\n";
|
print "$ac_headers{$_}: Autoconf-checked header `$_' is unused\n";
|
||||||
} elsif (not defined($symbols{$def})) {
|
} elsif (not defined($symbols{$def})) {
|
||||||
print "$ac_headers{$_}: Autoconf-define for header $_ is unused\n";
|
print "$ac_headers{$_}: Autoconf-define `$def' for header `$_' is unused\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user