summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5MM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5MM.c b/src/H5MM.c
index eb9c76e..b8682c4 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -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;