mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r26249] Removed warnings about NO TRACE from bin/trace script.
Fixes: HDFFV-9098 Tested on: jam (bin/trace only - causes no source changes)
This commit is contained in:
parent
6ce3158da7
commit
54a36600c0
11
bin/trace
11
bin/trace
@ -282,13 +282,9 @@ sub rewrite_func ($$$$$) {
|
||||
|
||||
# The H5TRACE() statement
|
||||
if ($body =~ /\/\*[ \t]*NO[ \t]*TRACE[ \t]*\*\//) {
|
||||
if ($body =~ /\s*H5TRACE\d+\s*\(/) {
|
||||
errmesg $file, $name, "warning: trace info was not updated because of NO TRACE comment";
|
||||
} else {
|
||||
errmesg $file, $name, "warning: trace info was not inserted because of NO TRACE comment";
|
||||
}
|
||||
# Ignored due to NO TRACE comment.
|
||||
} elsif ($body =~ s/((\n[ \t]*)H5TRACE\d+\s*\(.*?\);)\n/"$2$trace"/es) {
|
||||
# Replaced an H5TRACE macro
|
||||
# Replaced an H5TRACE macro.
|
||||
} elsif ($body=~s/((\n[ \t]*)FUNC_ENTER\w*\s*\(.*?\);??)\n/"$1$2$trace"/es) {
|
||||
# Added an H5TRACE macro after a FUNC_ENTER macro.
|
||||
} else {
|
||||
@ -336,3 +332,6 @@ for $file (@ARGV) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
printf "Finished processing HDF5 API calls\n"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user