summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-30 23:01:29 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-30 23:01:29 (GMT)
commit3e91eeb270efaa2075c80e81895066bccf1b1a47 (patch)
tree31ea207170c9740b6d41635dfa0511b6292c148a
parentea21b3f89fffc93a10cb96a5cf3c4a364e79724c (diff)
downloadhdf5-3e91eeb270efaa2075c80e81895066bccf1b1a47.zip
hdf5-3e91eeb270efaa2075c80e81895066bccf1b1a47.tar.gz
hdf5-3e91eeb270efaa2075c80e81895066bccf1b1a47.tar.bz2
I'm taking a guess that this code intended to point the 2-digit wide
hexadecimal octet values, not 2 character-wide pointers to the bytes. The %02p format, which is a GNU-ism, disagreed with GCC 8.3.0 and the option flags we use.
-rw-r--r--src/H5Tdbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tdbg.c b/src/H5Tdbg.c
index 6172611..403ae3e 100644
--- a/src/H5Tdbg.c
+++ b/src/H5Tdbg.c
@@ -423,7 +423,7 @@ H5T_debug(const H5T_t *dt, FILE *stream)
HDfprintf(stream, "\n\"%s\" = 0x", dt->shared->u.enumer.name[i]);
for (k = 0; k < base_size; k++)
- HDfprintf(stream, "%02p", ((uint8_t *)dt->shared->u.enumer.value + (i * base_size) + k));
+ HDfprintf(stream, "%02" PRIx8, *((uint8_t *)dt->shared->u.enumer.value + (i * base_size) + k));
} /* end for */
HDfprintf(stream, "\n");
}