summaryrefslogtreecommitdiffstats
path: root/src/H5detect.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-04 17:00:46 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-04 17:00:46 (GMT)
commit5cac69efe847c356752f4b7d76cb6f4ebbf40615 (patch)
tree89ee209d70325de64a4c818118e03015ca662a29 /src/H5detect.c
parent20ebc34e01601a7d7d67b925e47227ad9e17110b (diff)
parentd42bee368850f0bf47ee3a708e3c5d8b7119a632 (diff)
downloadhdf5-5cac69efe847c356752f4b7d76cb6f4ebbf40615.zip
hdf5-5cac69efe847c356752f4b7d76cb6f4ebbf40615.tar.gz
hdf5-5cac69efe847c356752f4b7d76cb6f4ebbf40615.tar.bz2
Merge pull request #2334 in HDFFV/hdf5 from ~DYOUNG/werror:hdf5_1_12-warnings-squashed to hdf5_1_12
* commit 'd42bee368850f0bf47ee3a708e3c5d8b7119a632': Squashed commit of the following:
Diffstat (limited to 'src/H5detect.c')
-rw-r--r--src/H5detect.c3
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)