mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-08 08:29:51 +00:00
Kill some build warnings
This commit is contained in:
parent
5efd1099bc
commit
44e7bda8ac
@ -110,9 +110,9 @@ int _a2_asprintf(char **strp, const char *fmt, ...) {
|
|||||||
|
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
assert(*strp0);
|
assert(*strp0);
|
||||||
assert(strp);
|
assert((uintptr_t)strp);
|
||||||
*strp = _a2_malloc(ret+1);
|
*strp = _a2_malloc(ret+1);
|
||||||
assert(*strp);
|
assert((uintptr_t)*strp);
|
||||||
memcpy(*strp, strp0, ret);
|
memcpy(*strp, strp0, ret);
|
||||||
*((*strp)+ret) = '\0';
|
*((*strp)+ret) = '\0';
|
||||||
free(strp0);
|
free(strp0);
|
||||||
|
@ -97,9 +97,9 @@ static void *systrace_thread(void *ignored) {
|
|||||||
LOG("Starting systrace writer thread ...");
|
LOG("Starting systrace writer thread ...");
|
||||||
|
|
||||||
writeBuf0 = CALLOC(1, TRACE_BUF_SIZ);
|
writeBuf0 = CALLOC(1, TRACE_BUF_SIZ);
|
||||||
assert(writeBuf0);
|
assert((uintptr_t)writeBuf0);
|
||||||
writeBuf1 = CALLOC(1, TRACE_BUF_SIZ);
|
writeBuf1 = CALLOC(1, TRACE_BUF_SIZ);
|
||||||
assert(writeBuf1);
|
assert((uintptr_t)writeBuf1);
|
||||||
|
|
||||||
bool swapped = __sync_bool_compare_and_swap(&writeHead, /*oldval:*/NULL, /*newval:*/writeBuf0);
|
bool swapped = __sync_bool_compare_and_swap(&writeHead, /*oldval:*/NULL, /*newval:*/writeBuf0);
|
||||||
assert(swapped);
|
assert(swapped);
|
||||||
|
Loading…
Reference in New Issue
Block a user