diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-12-06 19:32:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 19:32:39 (GMT) |
commit | 64514392fb6b18691afc993c31787d098bbe278d (patch) | |
tree | 3d13e05e9ac0bcf3be27a823d08f1e6d98f9bfe1 /src | |
parent | 0a2006d9c6565a9b1b459c017594460d2231c773 (diff) | |
download | hdf5-64514392fb6b18691afc993c31787d098bbe278d.zip hdf5-64514392fb6b18691afc993c31787d098bbe278d.tar.gz hdf5-64514392fb6b18691afc993c31787d098bbe278d.tar.bz2 |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Opline.c | 8 |
1 files 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 */ |