diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2024-02-08 15:56:20 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2024-02-14 22:08:37 (GMT) |
commit | b63a9fe5996e0129640c5dfb870b9f9220720217 (patch) | |
tree | 5e0a5a041c2b9c78cc3382ba25a11d62abc95fdb /HDF5Examples | |
parent | 7e47f893140f0700ca6a0f77cb5c0a42f5bad21d (diff) | |
download | hdf5-b63a9fe5996e0129640c5dfb870b9f9220720217.zip hdf5-b63a9fe5996e0129640c5dfb870b9f9220720217.tar.gz hdf5-b63a9fe5996e0129640c5dfb870b9f9220720217.tar.bz2 |
Remove oneapi/clang compiler printf() type warning. (#3994)
* Remove oneapi/clang compiler printf() type warning from h5ex_t_opaque.c.
Diffstat (limited to 'HDF5Examples')
-rw-r--r-- | HDF5Examples/C/H5T/h5ex_t_convert.c | 2 | ||||
-rw-r--r-- | HDF5Examples/C/H5T/h5ex_t_opaque.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/HDF5Examples/C/H5T/h5ex_t_convert.c b/HDF5Examples/C/H5T/h5ex_t_convert.c index b6f46b6..b7036e3 100644 --- a/HDF5Examples/C/H5T/h5ex_t_convert.c +++ b/HDF5Examples/C/H5T/h5ex_t_convert.c @@ -120,7 +120,7 @@ main(void) * Output the data to the screen. */ for (i = 0; i < DIM0; i++) { - printf("sensor[%d]:\n", i); + printf("sensor[%" PRIuHSIZE "]:\n", i); printf("Serial number : %d\n", sensor[i].serial_no); printf("Location : %s\n", sensor[i].location); printf("Temperature (F) : %f\n", sensor[i].temperature); diff --git a/HDF5Examples/C/H5T/h5ex_t_opaque.c b/HDF5Examples/C/H5T/h5ex_t_opaque.c index 085183a..11a58ae 100644 --- a/HDF5Examples/C/H5T/h5ex_t_opaque.c +++ b/HDF5Examples/C/H5T/h5ex_t_opaque.c @@ -111,7 +111,7 @@ main(void) */ printf("Datatype tag for %s is: \"%s\"\n", DATASET, tag); for (i = 0; i < dims[0]; i++) { - printf("%s[%u]: ", DATASET, i); + printf("%s[%" PRIuHSIZE "]: ", DATASET, i); for (j = 0; j < len; j++) printf("%c", rdata[j + i * len]); printf("\n"); |