diff options
author | Sean McBride <sean@rogue-research.com> | 2021-02-23 04:29:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 04:29:56 (GMT) |
commit | c17b4b93d680340af2b3f2c026f2c03c3baeb33a (patch) | |
tree | e4ec3b490205d7707251b902657282fe06a4230d /bin | |
parent | 5ed255a607d604b45e92b06548682ae9b716535d (diff) | |
download | hdf5-c17b4b93d680340af2b3f2c026f2c03c3baeb33a.zip hdf5-c17b4b93d680340af2b3f2c026f2c03c3baeb33a.tar.gz hdf5-c17b4b93d680340af2b3f2c026f2c03c3baeb33a.tar.bz2 |
Fixed many -Wreserved-id-macro warnings by fixing header guard spelling (#361)
* Fixed many -Wreserved-id-macro warnings by fixing header guard spelling
Removed leading underscore(s) from header guard spelling. Used 2 regexes:
` _H5(.*)_H`
` __H5(.*)_H`
Applied case-insensitively to only .h files.
* Modified scripts that generate header files to not use underscore prefix
Interestingly, there was already no leading underscore in the trailing comment at the end of the file
* Fixed remaining -Wreserved-id-macro warning not caught by regex
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/make_err | 4 | ||||
-rwxr-xr-x | bin/make_overflow | 4 | ||||
-rwxr-xr-x | bin/make_vers | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/make_err b/bin/make_err index 68a32f4..f2b044a 100755 --- a/bin/make_err +++ b/bin/make_err @@ -64,8 +64,8 @@ sub print_startprotect ($$) { $file =~ s/(\w*)\.h/$1/; # Print the ifdef info - print $fh "\n#ifndef _${file}_H\n"; - print $fh "#define _${file}_H\n"; + print $fh "\n#ifndef ${file}_H\n"; + print $fh "#define ${file}_H\n"; } ############################################################################## diff --git a/bin/make_overflow b/bin/make_overflow index d1d16ee..37d6ded 100755 --- a/bin/make_overflow +++ b/bin/make_overflow @@ -93,8 +93,8 @@ sub print_startprotect ($$) { $file =~ s/(\w*)\.h/$1/; # Print the ifdef info - print $fh "\n#ifndef _${file}_H\n"; - print $fh "#define _${file}_H\n"; + print $fh "\n#ifndef ${file}_H\n"; + print $fh "#define ${file}_H\n"; } ############################################################################## diff --git a/bin/make_vers b/bin/make_vers index 2c4a9c8..3631d3c 100755 --- a/bin/make_vers +++ b/bin/make_vers @@ -78,8 +78,8 @@ sub print_startprotect ($$) { $file =~ s/(\w*)\.h/$1/; # Print the ifdef info - print $fh "\n#ifndef _${file}_H\n"; - print $fh "#define _${file}_H\n"; + print $fh "\n#ifndef ${file}_H\n"; + print $fh "#define ${file}_H\n"; } ############################################################################## |