diff options
author | David Young <dyoung@hdfgroup.org> | 2020-01-29 02:35:28 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:54 (GMT) |
commit | 13bb3afdc6c6a947c7d4c768fe81a3eb29b0f254 (patch) | |
tree | 0a8511c35720f5b622d5c2b3790c6215da2839e2 /src/H5detect.c | |
parent | 2badc1bf325cd6b9ff4962ce7b0e0296568f240e (diff) | |
download | hdf5-13bb3afdc6c6a947c7d4c768fe81a3eb29b0f254.zip hdf5-13bb3afdc6c6a947c7d4c768fe81a3eb29b0f254.tar.gz hdf5-13bb3afdc6c6a947c7d4c768fe81a3eb29b0f254.tar.bz2 |
Reduce differences between my -Werror branch and `develop`:
Rename index -> idx, fileno -> fnumber, fileno -> fno to avoid GCC
shadowed declaration warnings about index(3).
Convert #pragma GCC diagnostic push/pop/ignored to the HDF5 library's
H5_GCC_DIAG_OFF()/H5_GCC_DIAG_ON() macros.
Diffstat (limited to 'src/H5detect.c')
-rw-r--r-- | src/H5detect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5detect.c b/src/H5detect.c index d01ee9f..655b05c 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -49,7 +49,7 @@ static const char *FileHeader = "\n\ /* Disable warning about cast increasing the alignment of the target type, * that's _exactly_ what this code is probing. -QAK */ -#pragma GCC diagnostic ignored "-Wcast-align" +H5_GCC_DIAG_OFF(cast-align) #if defined(__has_attribute) # if __has_attribute(no_sanitize_address) @@ -1707,3 +1707,4 @@ main(int argc, char *argv[]) return EXIT_SUCCESS; } +H5_GCC_DIAG_ON(cast-align) |