diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2024-02-08 15:56:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 15:56:20 (GMT) |
commit | 6345c1650ad4cba7ba817c75d2ac9fa01bde365e (patch) | |
tree | 6b944241567cbd70aa1bd7b82df3a4e057ece867 /HDF5Examples | |
parent | 16e9937111d316310aeec2c51da9ea2db4ddbda0 (diff) | |
download | hdf5-6345c1650ad4cba7ba817c75d2ac9fa01bde365e.zip hdf5-6345c1650ad4cba7ba817c75d2ac9fa01bde365e.tar.gz hdf5-6345c1650ad4cba7ba817c75d2ac9fa01bde365e.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"); |