Skip to content

Commit

Permalink
Fixed -Wreserved-id-macro warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
seanm committed Feb 26, 2021
1 parent b9c5b69 commit 1dd64ac
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions c++/src/H5AbstractDs.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef __AbstractDs_H
#define __AbstractDs_H
#ifndef H5AbstractDs_H
#define H5AbstractDs_H

namespace H5 {

Expand Down Expand Up @@ -81,4 +81,4 @@ class H5_DLLCPP AbstractDs {
}; // end of AbstractDs
} // namespace H5

#endif // __AbstractDs_H
#endif // H5AbstractDs_H
6 changes: 3 additions & 3 deletions c++/src/H5CommonFG.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef __CommonFG_H
#define __CommonFG_H
#ifndef H5CommonFG_H
#define H5CommonFG_H

namespace H5 {

Expand Down Expand Up @@ -83,7 +83,7 @@ class H5_DLLCPP CommonFG {
}; // end of CommonFG
} // namespace H5

#endif // __CommonFG_H
#endif // H5CommonFG_H

/***************************************************************************
Design Note
Expand Down
6 changes: 3 additions & 3 deletions c++/src/H5Group.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef __Group_H
#define __Group_H
#ifndef H5Group_H
#define H5Group_H

namespace H5 {

Expand Down Expand Up @@ -83,4 +83,4 @@ class H5_DLLCPP Group : public H5Object, public CommonFG {
}; // end of Group
} // namespace H5

#endif // __Group_H
#endif // H5Group_H
6 changes: 3 additions & 3 deletions c++/src/H5IdComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef __IdComponent_H
#define __IdComponent_H
#ifndef H5IdComponent_H
#define H5IdComponent_H

namespace H5 {

Expand Down Expand Up @@ -113,4 +113,4 @@ class H5_DLLCPP IdComponent {
}; // end class IdComponent
} // namespace H5

#endif // __IdComponent_H
#endif // H5IdComponent_H
6 changes: 3 additions & 3 deletions hl/src/hdf5_hl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* fill this file with lots of gunk...
*/

#ifndef _HDF5_HL_H
#define _HDF5_HL_H
#ifndef HDF5_HL_H
#define HDF5_HL_H
#include "hdf5.h" /* hdf5 main library */
#include "H5DOpublic.h" /* dataset optimization */
#include "H5DSpublic.h" /* dimension scales */
Expand All @@ -28,4 +28,4 @@
#include "H5PTpublic.h" /* packet table */
#include "H5LDpublic.h" /* lite dataset */

#endif /*H5_INCLUDE_HL*/
#endif /*HDF5_HL_H*/
6 changes: 3 additions & 3 deletions test/cache_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* This file contains common #defines, type definitions, and
* externs for tests of the cache implemented in H5C.c
*/
#ifndef _CACHE_COMMON_H
#define _CACHE_COMMON_H
#ifndef CACHE_COMMON_H
#define CACHE_COMMON_H

#define H5C_FRIEND /*suppress error about including H5Cpkg */
#define H5F_FRIEND /*suppress error about including H5Fpkg */
Expand Down Expand Up @@ -694,4 +694,4 @@ H5TEST_DLL void dump_LRU(H5F_t * file_ptr);
}
#endif

#endif /* _CACHE_COMMON_H */
#endif /* CACHE_COMMON_H */
6 changes: 3 additions & 3 deletions test/external_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
* Purpose: Private function for external.c and external_env.c
*/
#ifndef _EXTERNAL_COMMON_H
#define _EXTERNAL_COMMON_H
#ifndef EXTERNAL_COMMON_H
#define EXTERNAL_COMMON_H

/* Include test header files */
#include "h5test.h"
Expand All @@ -41,4 +41,4 @@ H5TEST_DLL herr_t reset_raw_data_files(hbool_t is_env);
}
#endif

#endif /* _EXTERNAL_COMMON_H */
#endif /* EXTERNAL_COMMON_H */
6 changes: 3 additions & 3 deletions test/external_fname.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
*
* Purpose: Private declaration for external.c and external_env.c
*/
#ifndef _EXTERNAL_FNAME_H
#define _EXTERNAL_FNAME_H
#ifndef EXTERNAL_FNAME_H
#define EXTERNAL_FNAME_H

/* Include test header files */
#include "h5test.h"

static const char *EXT_FNAME[] = {"extern_1", "extern_2", "extern_3", "extern_4",
"extern_dir/file_1", "extern_5", NULL};

#endif /* _EXTERNAL_FNAME_H */
#endif /* EXTERNAL_FNAME_H */
6 changes: 3 additions & 3 deletions test/swmr_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef _SWMR_COMMON_H
#define _SWMR_COMMON_H
#ifndef SWMR_COMMON_H
#define SWMR_COMMON_H

/***********/
/* Headers */
Expand Down Expand Up @@ -75,4 +75,4 @@ H5TEST_DLL int print_metadata_retries_info(hid_t fid);
}
#endif

#endif /* _SWMR_COMMON_H */
#endif /* SWMR_COMMON_H */
6 changes: 3 additions & 3 deletions tools/lib/ph5diff.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef _PH5DIFF_H__
#define _PH5DIFF_H__
#ifndef PH5DIFF_H
#define PH5DIFF_H

/* Send from manager to workers */
#define MPI_TAG_ARGS 1
Expand Down Expand Up @@ -40,4 +40,4 @@ struct diffs_found {
int not_cmp;
};

#endif /* _PH5DIFF_H__ */
#endif /* PH5DIFF_H */

0 comments on commit 1dd64ac

Please sign in to comment.