From 0a2c6270ee9cec6f377e4056baca3030d03d64b9 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 19 Sep 1997 13:57:12 -0500 Subject: [svn-r103] Added pointer cast to shut compiler up. --- src/H5MM.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12