From 44e7bda8ac5f716ba2f2de71cfbd5529759aa54d Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sat, 1 Jun 2019 17:47:35 -0700 Subject: [PATCH] Kill some build warnings --- src/meta/memmngt.c | 4 ++-- src/meta/systrace.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meta/memmngt.c b/src/meta/memmngt.c index c36cb159..ea5e3bc8 100644 --- a/src/meta/memmngt.c +++ b/src/meta/memmngt.c @@ -110,9 +110,9 @@ int _a2_asprintf(char **strp, const char *fmt, ...) { if (ret > 0) { assert(*strp0); - assert(strp); + assert((uintptr_t)strp); *strp = _a2_malloc(ret+1); - assert(*strp); + assert((uintptr_t)*strp); memcpy(*strp, strp0, ret); *((*strp)+ret) = '\0'; free(strp0); diff --git a/src/meta/systrace.c b/src/meta/systrace.c index a2dc2292..0ef6aafc 100644 --- a/src/meta/systrace.c +++ b/src/meta/systrace.c @@ -97,9 +97,9 @@ static void *systrace_thread(void *ignored) { LOG("Starting systrace writer thread ..."); writeBuf0 = CALLOC(1, TRACE_BUF_SIZ); - assert(writeBuf0); + assert((uintptr_t)writeBuf0); writeBuf1 = CALLOC(1, TRACE_BUF_SIZ); - assert(writeBuf1); + assert((uintptr_t)writeBuf1); bool swapped = __sync_bool_compare_and_swap(&writeHead, /*oldval:*/NULL, /*newval:*/writeBuf0); assert(swapped);