From 64514392fb6b18691afc993c31787d098bbe278d Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:32:39 -0800 Subject: 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> --- src/H5Opline.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/H5Opline.c b/src/H5Opline.c index 20e9509..58c729f 100644 --- a/src/H5Opline.c +++ b/src/H5Opline.c @@ -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 */ -- cgit v0.12