Kill some build warnings

This commit is contained in:
Aaron Culliney 2019-06-01 17:47:35 -07:00
parent 5efd1099bc
commit 44e7bda8ac
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);