mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
warnings.pl: remove one more instance of "scalar(%hash)"
scalar(%hash) is broken on old versions of Perl, use scalar(keys %hash). Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
6ecc25c13e
commit
ad1f50a506
@ -148,7 +148,7 @@ if ($what eq 'c') {
|
||||
}
|
||||
print $out "\n};\n\n";
|
||||
printf $out "const struct warning_alias warning_alias[%d] = {",
|
||||
scalar(%aliases);
|
||||
scalar(keys %aliases);
|
||||
my $sep = '';
|
||||
foreach my $alias (sort { $a cmp $b } keys(%aliases)) {
|
||||
printf $out "%s\n\t{ %-27s WARN_IDX_%s }",
|
||||
|
Loading…
Reference in New Issue
Block a user