summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2024-03-17 02:43:47 (GMT)
committerGitHub <noreply@github.com>2024-03-17 02:43:47 (GMT)
commita56675e12ad1090eb38d4d3cd8cf08a9af3c9f7f (patch)
tree7a7c9b2e493b9050a23f925de3ae87d4bc607597 /HDF5Examples/C
parent68e8c0e62724b2a450e30f2becdcc9452ac0abb4 (diff)
downloadhdf5-a56675e12ad1090eb38d4d3cd8cf08a9af3c9f7f.zip
hdf5-a56675e12ad1090eb38d4d3cd8cf08a9af3c9f7f.tar.gz
hdf5-a56675e12ad1090eb38d4d3cd8cf08a9af3c9f7f.tar.bz2
Fix some minor warnings (#4165)
Diffstat (limited to 'HDF5Examples/C')
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_array.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_arrayatt.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_cmpd.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_cmpdatt.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_cpxcmpd.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_cpxcmpdatt.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_objref.c5
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_objrefatt.c5
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_opaqueatt.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_regref.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_regrefatt.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_vlen.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_vlenatt.c2
13 files changed, 19 insertions, 13 deletions
diff --git a/HDF5Examples/C/H5T/h5ex_t_array.c b/HDF5Examples/C/H5T/h5ex_t_array.c
index b63e4e0..a29ac45 100644
--- a/HDF5Examples/C/H5T/h5ex_t_array.c
+++ b/HDF5Examples/C/H5T/h5ex_t_array.c
@@ -144,7 +144,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]:\n", DATASET, i);
for (j = 0; j < adims[0]; j++) {
printf(" [");
for (k = 0; k < adims[1]; k++)
diff --git a/HDF5Examples/C/H5T/h5ex_t_arrayatt.c b/HDF5Examples/C/H5T/h5ex_t_arrayatt.c
index a89f2b2..f071128 100644
--- a/HDF5Examples/C/H5T/h5ex_t_arrayatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_arrayatt.c
@@ -155,7 +155,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]:\n", ATTRIBUTE, i);
for (j = 0; j < adims[0]; j++) {
printf(" [");
for (k = 0; k < adims[1]; k++)
diff --git a/HDF5Examples/C/H5T/h5ex_t_cmpd.c b/HDF5Examples/C/H5T/h5ex_t_cmpd.c
index 739d061..44f1552 100644
--- a/HDF5Examples/C/H5T/h5ex_t_cmpd.c
+++ b/HDF5Examples/C/H5T/h5ex_t_cmpd.c
@@ -136,7 +136,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]:\n", DATASET, i);
printf("Serial number : %d\n", rdata[i].serial_no);
printf("Location : %s\n", rdata[i].location);
printf("Temperature (F) : %f\n", rdata[i].temperature);
diff --git a/HDF5Examples/C/H5T/h5ex_t_cmpdatt.c b/HDF5Examples/C/H5T/h5ex_t_cmpdatt.c
index 246537b..04c72a5 100644
--- a/HDF5Examples/C/H5T/h5ex_t_cmpdatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_cmpdatt.c
@@ -146,7 +146,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]:\n", ATTRIBUTE, i);
printf("Serial number : %d\n", rdata[i].serial_no);
printf("Location : %s\n", rdata[i].location);
printf("Temperature (F) : %f\n", rdata[i].temperature);
diff --git a/HDF5Examples/C/H5T/h5ex_t_cpxcmpd.c b/HDF5Examples/C/H5T/h5ex_t_cpxcmpd.c
index 8506c08..370f781 100644
--- a/HDF5Examples/C/H5T/h5ex_t_cpxcmpd.c
+++ b/HDF5Examples/C/H5T/h5ex_t_cpxcmpd.c
@@ -293,7 +293,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]:\n", DATASET, i);
printf(" Vehicle name :\n %s\n", rdata[i].name);
printf(" Sensor locations :\n");
for (j = 0; j < rdata[i].sensors.len; j++)
diff --git a/HDF5Examples/C/H5T/h5ex_t_cpxcmpdatt.c b/HDF5Examples/C/H5T/h5ex_t_cpxcmpdatt.c
index c7efbce..a55fb76 100644
--- a/HDF5Examples/C/H5T/h5ex_t_cpxcmpdatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_cpxcmpdatt.c
@@ -304,7 +304,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]:\n", ATTRIBUTE, i);
printf(" Vehicle name :\n %s\n", rdata[i].name);
printf(" Sensor locations :\n");
for (j = 0; j < rdata[i].sensors.len; j++)
diff --git a/HDF5Examples/C/H5T/h5ex_t_objref.c b/HDF5Examples/C/H5T/h5ex_t_objref.c
index 660cc11..e6c2de9 100644
--- a/HDF5Examples/C/H5T/h5ex_t_objref.c
+++ b/HDF5Examples/C/H5T/h5ex_t_objref.c
@@ -135,7 +135,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n ->", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]:\n ->", DATASET, i);
/*
* Open the referenced object, get its name and type.
@@ -174,6 +174,9 @@ main(void)
case H5O_TYPE_NAMED_DATATYPE:
printf("Named Datatype");
break;
+ case H5O_TYPE_MAP:
+ printf("Map Object");
+ break;
case H5O_TYPE_UNKNOWN:
case H5O_TYPE_NTYPES:
printf("Unknown");
diff --git a/HDF5Examples/C/H5T/h5ex_t_objrefatt.c b/HDF5Examples/C/H5T/h5ex_t_objrefatt.c
index 1d9d1fe..562364a 100644
--- a/HDF5Examples/C/H5T/h5ex_t_objrefatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_objrefatt.c
@@ -147,7 +147,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n ->", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]:\n ->", ATTRIBUTE, i);
/*
* Open the referenced object, get its name and type.
@@ -186,6 +186,9 @@ main(void)
case H5O_TYPE_NAMED_DATATYPE:
printf("Named Datatype");
break;
+ case H5O_TYPE_MAP:
+ printf("Map Object");
+ break;
case H5O_TYPE_UNKNOWN:
case H5O_TYPE_NTYPES:
printf("Unknown");
diff --git a/HDF5Examples/C/H5T/h5ex_t_opaqueatt.c b/HDF5Examples/C/H5T/h5ex_t_opaqueatt.c
index e88031a..6729492 100644
--- a/HDF5Examples/C/H5T/h5ex_t_opaqueatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_opaqueatt.c
@@ -121,7 +121,7 @@ main(void)
*/
printf("Datatype tag for %s is: \"%s\"\n", ATTRIBUTE, tag);
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]: ", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]: ", ATTRIBUTE, i);
for (j = 0; j < len; j++)
printf("%c", rdata[j + i * len]);
printf("\n");
diff --git a/HDF5Examples/C/H5T/h5ex_t_regref.c b/HDF5Examples/C/H5T/h5ex_t_regref.c
index 3922725..e6d4cef 100644
--- a/HDF5Examples/C/H5T/h5ex_t_regref.c
+++ b/HDF5Examples/C/H5T/h5ex_t_regref.c
@@ -168,7 +168,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n ->", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]:\n ->", DATASET, i);
/*
* Open the referenced object, retrieve its region as a
diff --git a/HDF5Examples/C/H5T/h5ex_t_regrefatt.c b/HDF5Examples/C/H5T/h5ex_t_regrefatt.c
index 5ed745d..bb31b70 100644
--- a/HDF5Examples/C/H5T/h5ex_t_regrefatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_regrefatt.c
@@ -183,7 +183,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n ->", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]:\n ->", ATTRIBUTE, i);
/*
* Open the referenced object, retrieve its region as a
diff --git a/HDF5Examples/C/H5T/h5ex_t_vlen.c b/HDF5Examples/C/H5T/h5ex_t_vlen.c
index 7111a34..b564972 100644
--- a/HDF5Examples/C/H5T/h5ex_t_vlen.c
+++ b/HDF5Examples/C/H5T/h5ex_t_vlen.c
@@ -118,7 +118,7 @@ main(void)
* Output the variable-length data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n {", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]:\n {", DATASET, i);
ptr = rdata[i].p;
for (j = 0; j < rdata[i].len; j++) {
printf(" %d", ptr[j]);
diff --git a/HDF5Examples/C/H5T/h5ex_t_vlenatt.c b/HDF5Examples/C/H5T/h5ex_t_vlenatt.c
index db69aea..e173a20 100644
--- a/HDF5Examples/C/H5T/h5ex_t_vlenatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_vlenatt.c
@@ -128,7 +128,7 @@ main(void)
* Output the variable-length data to the screen.
*/
for (i = 0; i < dims[0]; i++) {
- printf("%s[%llu]:\n {", ATTRIBUTE, i);
+ printf("%s[%" PRIuHSIZE "]:\n {", ATTRIBUTE, i);
ptr = rdata[i].p;
for (j = 0; j < rdata[i].len; j++) {
printf(" %d", ptr[j]);