mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r11402] Purpose: Maintenance
Description: Compiler complained about const type * variables that were used in the functions that require "non const" parameters. Compilation failed. Solution: Use casting to avoid compilation errors. Platforms tested: SX-6, heping and mir with new g95 Misc. update:
This commit is contained in:
parent
48ae256b07
commit
b379a469c0
@ -305,7 +305,7 @@ H5FS_close_stack(H5FS_t *stack)
|
||||
|
||||
/* Free strings on stack */
|
||||
for(u = 0; u < stack->nused; u++)
|
||||
stack->slot[u] = H5MM_xfree(stack->slot[u]);
|
||||
stack->slot[u] = H5MM_xfree((void *)stack->slot[u]);
|
||||
|
||||
FUNC_LEAVE_NOAPI_NOFS(SUCCEED);
|
||||
} /* end H5FS_close_stack() */
|
||||
|
@ -2342,7 +2342,7 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
|
||||
* speed up hyperslab calculations by removing the extra checks and/or
|
||||
* additions involving the offset and the hyperslab selection -QAK)
|
||||
*/
|
||||
if(H5S_hyper_normalize_offset(file_space, old_offset)<0)
|
||||
if(H5S_hyper_normalize_offset((H5S_t *)file_space, old_offset)<0)
|
||||
HGOTO_ERROR (H5E_DATASET, H5E_BADSELECT, FAIL, "unable to normalize dataspace by offset")
|
||||
file_space_normalized = TRUE;
|
||||
|
||||
@ -2507,7 +2507,7 @@ done:
|
||||
HDONE_ERROR (H5E_DATASET, H5E_CANTFREE, FAIL, "Can't decrement temporary datatype ID")
|
||||
} /* end if */
|
||||
if(file_space_normalized) {
|
||||
if(H5S_hyper_denormalize_offset(file_space, old_offset)<0)
|
||||
if(H5S_hyper_denormalize_offset((H5S_t *)file_space, old_offset)<0)
|
||||
HGOTO_ERROR (H5E_DATASET, H5E_BADSELECT, FAIL, "unable to normalize dataspace by offset")
|
||||
} /* end if */
|
||||
|
||||
|
@ -305,7 +305,7 @@ H5FS_close_stack(H5FS_t *stack)
|
||||
|
||||
/* Free strings on stack */
|
||||
for(u = 0; u < stack->nused; u++)
|
||||
stack->slot[u] = H5MM_xfree(stack->slot[u]);
|
||||
stack->slot[u] = H5MM_xfree((void *)stack->slot[u]);
|
||||
|
||||
FUNC_LEAVE_NOAPI_NOFS(SUCCEED);
|
||||
} /* end H5FS_close_stack() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user