From 248604ffbcd050259024e145428d8345da1769f3 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 18 Oct 2018 13:29:55 +0100 Subject: [PATCH] Shut up GCC -pedantic warnings --- stb_leakcheck.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_leakcheck.h b/stb_leakcheck.h index 32cf93c..d68e109 100644 --- a/stb_leakcheck.h +++ b/stb_leakcheck.h @@ -114,7 +114,7 @@ void stb_leakcheck_dumpmem(void) if ((ptrdiff_t) mi->size >= 0) { stblkck_internal_print("LEAKED", mi->file, mi->line, mi->size, mi+1); - printf("LEAKED: %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) mi->size, mi+1); + printf("LEAKED: %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) mi->size, (void*)(mi+1)); } mi = mi->next; } @@ -124,7 +124,7 @@ void stb_leakcheck_dumpmem(void) if ((ptrdiff_t) mi->size < 0) { stblkck_internal_print("FREED", mi->file, mi->line, ~mi->size, mi+1); - printf("FREED : %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) ~mi->size, mi+1); + printf("FREED : %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) ~mi->size, (void*)(mi+1)); } mi = mi->next; }