From a2475e33a2e79a34405ed0f3c210ae2713105178 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Wed, 22 Apr 2015 08:29:03 -0500 Subject: [svn-r26879] Removed printf size_t warnings from VDS examples. size_t parameters are now printed using lu after being cast to unsigned long (safe for C89). Tested on: 64-bit linux VM --- examples/h5_vds-exc.c | 2 +- examples/h5_vds-exclim.c | 2 +- examples/h5_vds-percival.c | 2 +- examples/h5_vds-simpleIO.c | 2 +- examples/h5_vds.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/h5_vds-exc.c b/examples/h5_vds-exc.c index 509b3e1..4a30d91 100644 --- a/examples/h5_vds-exc.c +++ b/examples/h5_vds-exc.c @@ -159,7 +159,7 @@ main (void) * Find number of mappings. */ status = H5Pget_virtual_count (dcpl, &num_map); - printf(" Number of mappings is %d\n", num_map); + printf(" Number of mappings is %lu\n", (unsigned long)num_map); /* * Get mapping parameters for each mapping. diff --git a/examples/h5_vds-exclim.c b/examples/h5_vds-exclim.c index af39c55..b24927b 100644 --- a/examples/h5_vds-exclim.c +++ b/examples/h5_vds-exclim.c @@ -160,7 +160,7 @@ main (void) * Find number of mappings. */ status = H5Pget_virtual_count (dcpl, &num_map); - printf(" Number of mappings is %d\n", num_map); + printf(" Number of mappings is %lu\n", (unsigned long)num_map); /* * Get mapping parameters for each mapping. diff --git a/examples/h5_vds-percival.c b/examples/h5_vds-percival.c index ba9e13f..79bb6b1 100644 --- a/examples/h5_vds-percival.c +++ b/examples/h5_vds-percival.c @@ -183,7 +183,7 @@ main (void) * Find number of mappings. */ status = H5Pget_virtual_count (dcpl, &num_map); - printf(" Number of mappings is %d\n", num_map); + printf(" Number of mappings is %lu\n", (unsigned long)num_map); /* * Get mapping parameters for each mapping. diff --git a/examples/h5_vds-simpleIO.c b/examples/h5_vds-simpleIO.c index e4b0018..795a87c 100644 --- a/examples/h5_vds-simpleIO.c +++ b/examples/h5_vds-simpleIO.c @@ -116,7 +116,7 @@ main (void) * Find the number of mappings. */ status = H5Pget_virtual_count (dcpl, &num_map); - printf(" Number of mappings is %d\n", num_map); + printf(" Number of mappings is %lu\n", (unsigned long)num_map); /* * Get mapping parameters for each mapping. diff --git a/examples/h5_vds.c b/examples/h5_vds.c index 7e128db..79a3f01 100644 --- a/examples/h5_vds.c +++ b/examples/h5_vds.c @@ -163,7 +163,7 @@ main (void) * Find the number of mappings. */ status = H5Pget_virtual_count (dcpl, &num_map); - printf(" Number of mappings is %d\n", num_map); + printf(" Number of mappings is %lu\n", (unsigned long)num_map); /* * Get mapping parameters for each mapping. -- cgit v0.12