From 294647ea977789d05a79107cc36fd3fc69b980be Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 14 Oct 2002 14:23:40 -0500 Subject: [svn-r5987] Purpose: Code cleanup Description: Clean up compile warnings. Platforms tested: FreeBSD 4.6 (sleipnir) w and w/o parallel Linux 2.2.x (eirene) w/FORTRAN & C++ Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/FORTRAN & parallel --- src/H5FD.c | 2 +- src/H5FDcore.c | 1 - src/H5FDmpio.c | 2 +- src/H5FDstdio.c | 3 +++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/H5FD.c b/src/H5FD.c index 6192d26..d9721a3 100644 --- a/src/H5FD.c +++ b/src/H5FD.c @@ -1800,7 +1800,7 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size) /* Block to free is in the middle of the accumulator */ if(H5F_addr_lt(addr,file->accum_loc+file->accum_size)) { haddr_t tail_addr; - hsize_t tail_size; + size_t tail_size; /* Calculate the address & size of the tail to write */ tail_addr=addr+size; diff --git a/src/H5FDcore.c b/src/H5FDcore.c index cea3834..d062835 100644 --- a/src/H5FDcore.c +++ b/src/H5FDcore.c @@ -85,7 +85,6 @@ static haddr_t H5FD_core_get_eoa(H5FD_t *_file); static herr_t H5FD_core_set_eoa(H5FD_t *_file, haddr_t addr); static haddr_t H5FD_core_get_eof(H5FD_t *_file); static herr_t H5FD_core_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle); -static H5F_close_degree_t H5FD_core_get_fc_degree(H5FD_t *_file); static herr_t H5FD_core_read(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, haddr_t addr, size_t size, void *buf); static herr_t H5FD_core_write(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, haddr_t addr, diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index 3453a3b..73a66db 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -1192,7 +1192,7 @@ done: *------------------------------------------------------------------------- */ static herr_t -H5FD_mpio_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle) +H5FD_mpio_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle) { H5FD_mpio_t *file = (H5FD_mpio_t *)_file; herr_t ret_value = SUCCEED; diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c index a94812e..311fb98 100644 --- a/src/H5FDstdio.c +++ b/src/H5FDstdio.c @@ -596,6 +596,9 @@ H5FD_stdio_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle) { H5FD_stdio_t *file = (H5FD_stdio_t *)_file; static const char *func="H5FD_stdio_get_handle"; /* Function Name for error reporting */ + + /* Shut compiler up */ + fapl=fapl; /* Clear the error stack */ H5Eclear(); -- cgit v0.12