Fixes warnings in H5Opline.c error messages (#2281)

* Fixes warnings in H5Opline.c error messages

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Dana Robinson 2022-12-06 11:32:39 -08:00 committed by GitHub
parent 0a2006d9c6
commit 64514392fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ H5O__pline_decode(H5F_t H5_ATTR_UNUSED *f, H5O_t H5_ATTR_UNUSED *open_oh, unsign
/* Version */
if (p + 4 - 1 > p_end) /* 4 byte is minimum for all versions */
HGOTO_ERROR(H5E_OHDR, H5E_NOSPACE, NULL, "ran off the end of the buffer: current p = %p, p_end = %p",
p + 4, p_end)
(const void *)(p + 4), (const void *)p_end)
pline->version = *p++;
if (pline->version < H5O_PLINE_VERSION_1 || pline->version > H5O_PLINE_VERSION_LATEST)
HGOTO_ERROR(H5E_PLINE, H5E_CANTLOAD, NULL, "bad version number for filter pipeline message")
@ -165,7 +165,8 @@ H5O__pline_decode(H5F_t H5_ATTR_UNUSED *f, H5O_t H5_ATTR_UNUSED *open_oh, unsign
/* Filter ID */
if (p + 6 - 1 > p_end) /* 6 bytes minimum */
HGOTO_ERROR(H5E_OHDR, H5E_NOSPACE, NULL,
"ran off the end of the buffer: current p = %p, p_end = %p", p + 6, p_end)
"ran off the end of the buffer: current p = %p, p_end = %p", (const void *)(p + 6),
(const void *)p_end)
UINT16DECODE(p, filter->id);
/* Length of filter name */
@ -177,7 +178,8 @@ H5O__pline_decode(H5F_t H5_ATTR_UNUSED *f, H5O_t H5_ATTR_UNUSED *open_oh, unsign
HGOTO_ERROR(H5E_PLINE, H5E_CANTLOAD, NULL, "filter name length is not a multiple of eight")
if (p + 4 - 1 > p_end) /* with name_length 4 bytes to go */
HGOTO_ERROR(H5E_OHDR, H5E_NOSPACE, NULL,
"ran off the end of the buffer: current p = %p, p_end = %p", p + 4, p_end)
"ran off the end of the buffer: current p = %p, p_end = %p",
(const void *)(p + 4), (const void *)p_end)
} /* end if */
/* Filter flags */