diff options
author | kmu <kmu@hdfgroup.org> | 2019-11-26 23:24:48 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:24 (GMT) |
commit | fb8f955a73a41de8fa457424c4622f6dc072f53d (patch) | |
tree | d5211375925133398e500dc157819b289b737566 /bin | |
parent | 3e4a99d17dcf2ed3df324513114fed58fe9272c6 (diff) | |
download | hdf5-fb8f955a73a41de8fa457424c4622f6dc072f53d.zip hdf5-fb8f955a73a41de8fa457424c4622f6dc072f53d.tar.gz hdf5-fb8f955a73a41de8fa457424c4622f6dc072f53d.tar.bz2 |
Revert "fix warnings from Intel compiler"
This reverts commit 8b9338ab57eec0cc8fa5a36c44d7b28e52e9a466.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/warnhist | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/bin/warnhist b/bin/warnhist index e48e591..a8dcd97 100755 --- a/bin/warnhist +++ b/bin/warnhist @@ -206,12 +206,8 @@ while (<>) { ($last_c_name, $toss) = split /\:/, $_; } - if($_ =~ /.*[A-Za-z0-9_]\.[chC]\(.*[0-9]\):.*#.*/) { - $last_c_name = $_; - } - # Skip lines that don't have the word "warning" - next if $_ !~ /[Ww]arning/; + next if $_ !~ /[Ww]arning:/; # Skip warnings from linker next if $_ =~ /ld: warning:/; @@ -261,15 +257,11 @@ while (<>) { } elsif($_ =~ /^\".*, line [0-9]+: *[Ww]arning:.*/) { ($name, $toss, $warning, $extra, $extra2) = split /\:/, $_; ($name, $line) = split /\,/, $name; - $name =~ s/^\"//g; - $name =~ s/\"$//g; - $line =~ s/^\s*line\s*//g; + $name =~ s/^\"//g; + $name =~ s/\"$//g; + $line =~ s/^\s*line\s*//g; # print "name:'", $name, "'-'", $line, "'\n"; # print "warning:'", $warning, "'\n"; - } elsif($_ =~ /.*[A-Za-z0-9_]\.[chC]\(.*[0-9]\):.*#.*/) { - ($last_c_name, $toss, $warning) = split /\:/, $last_c_name; - ($name, $line) = split /\(/, $last_c_name; - $line =~ s/\)//g; } else { # Check for 'character offset' field appended to file & line # # (This is probably specific to GCC) @@ -339,7 +331,6 @@ while (<>) { # Convert all quotes to ' $warning =~ s/‘/'/g; $warning =~ s/’/'/g; - $warning =~ s/"/'/g; # # These skipped messages & "genericizations" may be specific to GCC |