mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r103] Added pointer cast to shut compiler up.
This commit is contained in:
parent
78aac33eb3
commit
0a2c6270ee
@ -176,7 +176,7 @@ H5MM_xfree (const void *mem)
|
||||
* compiler warning, we cast it to a non-const arg first. With
|
||||
* gcc, this results in a warning only if -Wcast-qual is turned on.
|
||||
*/
|
||||
void *non_const_mem = mem;
|
||||
void *non_const_mem = (void *)mem;
|
||||
|
||||
if (mem) HDfree (non_const_mem);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user