summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-01-29 19:51:27 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-01-29 19:51:27 (GMT)
commit0d6e02588879a6ff2afcfabcf7090e39e59accf7 (patch)
tree4d299030c604450f94dc8b882c328c51886beb48 /tools/src
parent1b49ccd7faaf3285ac736ac260f15fe3e6cb69f8 (diff)
parenta5f236e83bdd29e660a55c5577a69a3809605cda (diff)
downloadhdf5-0d6e02588879a6ff2afcfabcf7090e39e59accf7.zip
hdf5-0d6e02588879a6ff2afcfabcf7090e39e59accf7.tar.gz
hdf5-0d6e02588879a6ff2afcfabcf7090e39e59accf7.tar.bz2
Merge pull request #2320 in HDFFV/hdf5 from ~DYOUNG/werror:reduce-werror-diffs-2 to develop
* commit 'a5f236e83bdd29e660a55c5577a69a3809605cda': Reduce casts of HDcalloc()/HDmalloc() that -Wc++-compat required.
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5import/h5import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index fc4d431..b11fe7f 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -1431,7 +1431,7 @@ static int processConfigurationFile(char *infile, struct Input *in)
/* Initialize machine endian */
volatile uint32_t ibyte=0x01234567;
/* 0 for big endian, 1 for little endian. */
- if ((*((uint8_t*)(&ibyte))) == 0x67) {
+ if ((*((volatile uint8_t*)(&ibyte))) == 0x67) {
if ((kindex = OutputByteOrderStrToInt("LE")) == -1) {
(void) HDfprintf(stderr, "%s", err11e);
return (-1);