From 3e91eeb270efaa2075c80e81895066bccf1b1a47 Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 30 Jul 2020 18:01:29 -0500 Subject: 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. --- src/H5Tdbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v0.12