Skip to content

Commit

Permalink
Remove oneapi/clang compiler printf() type warning. (HDFGroup#3994)
Browse files Browse the repository at this point in the history
* Remove oneapi/clang compiler printf() type warning from h5ex_t_opaque.c.
  • Loading branch information
hyoklee authored and lrknox committed Feb 14, 2024
1 parent 7e47f89 commit b63a9fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5T/h5ex_t_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5T/h5ex_t_opaque.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b63a9fe

Please sign in to comment.