From 7eb74707fbeb7f0ae304eda9fc792f97e8f0c90c Mon Sep 17 00:00:00 2001 From: Hyo-Kyung Lee Date: Tue, 6 Feb 2024 20:11:43 -0600 Subject: [PATCH 1/4] Remove oneapi/clang compiler printf() type warning. --- HDF5Examples/C/H5T/h5ex_t_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HDF5Examples/C/H5T/h5ex_t_convert.c b/HDF5Examples/C/H5T/h5ex_t_convert.c index b6f46b6f8fc..1e052319aad 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[%llu]:\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); From e4378a79492d9a8218f2bf19c43d1ad737f3218a Mon Sep 17 00:00:00 2001 From: Hyo-Kyung Lee Date: Wed, 7 Feb 2024 09:36:18 -0600 Subject: [PATCH 2/4] Address @jhendersonHDF review --- HDF5Examples/C/H5T/h5ex_t_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HDF5Examples/C/H5T/h5ex_t_convert.c b/HDF5Examples/C/H5T/h5ex_t_convert.c index 1e052319aad..dc0a2d5aaae 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[%llu]:\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); From c8f7782768d7c919fe1c11168c490bfe1431503d Mon Sep 17 00:00:00 2001 From: Hyo-Kyung Lee Date: Wed, 7 Feb 2024 10:01:16 -0600 Subject: [PATCH 3/4] Address @jhendersonHDF review --- HDF5Examples/C/H5T/h5ex_t_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HDF5Examples/C/H5T/h5ex_t_convert.c b/HDF5Examples/C/H5T/h5ex_t_convert.c index dc0a2d5aaae..b7036e3e0c5 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[" PRIuHSIZE "]:\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); From b2fa4ee4262e6b606b6b5ea300ae3be635099677 Mon Sep 17 00:00:00 2001 From: "H. Joe Lee" Date: Wed, 7 Feb 2024 22:03:58 -0600 Subject: [PATCH 4/4] Remove oneapi/clang compiler printf() type warning from h5ex_t_opaque.c. --- HDF5Examples/C/H5T/h5ex_t_opaque.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HDF5Examples/C/H5T/h5ex_t_opaque.c b/HDF5Examples/C/H5T/h5ex_t_opaque.c index 085183a1668..11a58aea2e0 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");