From 12e5135d95dc34fd7f7a7c50d6dbac453f252683 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Feb 2019 16:00:03 +0100 Subject: Add result check for msvc --- include/alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/alloc.h') diff --git a/include/alloc.h b/include/alloc.h index 35223b3..6809287 100644 --- a/include/alloc.h +++ b/include/alloc.h @@ -7,8 +7,8 @@ #define ALLOC_OK 0 #define ALLOC_FAIL -1 -WARN_UNUSED_RESULT int am_malloc(usize size, void **mem); -WARN_UNUSED_RESULT int am_realloc(void *mem, usize new_size, void **new_mem); +CHECK_RESULT int am_malloc(usize size, void **mem); +CHECK_RESULT int am_realloc(void *mem, usize new_size, void **new_mem); void am_free(void *mem); #endif -- cgit v1.2.3