From d1466d79487fdf04f99631d919f587c422c281a4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Oct 2015 18:35:56 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/slibc-alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/slibc-alloc.h b/include/slibc-alloc.h index d745dee..b0b2561 100644 --- a/include/slibc-alloc.h +++ b/include/slibc-alloc.h @@ -345,13 +345,13 @@ void* falloc(void*, size_t*, size_t, size_t, size_t, enum falloc_mode); * This macro calls `fast_free` and then sets the pointer to `NULL`, * so that another attempt to free the segment will not crash the process. */ -#define FAST_FREE(segment) (fast_free(segment), (segment) = NULL); +#define FAST_FREE(segment) (fast_free(segment), (void)((segment) = NULL)); /** * This macro calls `secure_free` and then sets the pointer to `NULL`, * so that another attempt to free the segment will not crash the process. */ -#define SECURE_FREE(segment) (secure_free(segment), (segment) = NULL); +#define SECURE_FREE(segment) (secure_free(segment), (void)((segment) = NULL)); -- cgit v1.2.3-70-g09d2