From: Justin Wind Date: Fri, 4 May 2012 22:04:57 +0000 (-0700) Subject: minor cleanup X-Git-Url: http://git.squeep.com/?p=dcpu16;a=commitdiff_plain;h=e2032a302e614b300909c8304cfa7d4f34eb023c minor cleanup quiet some gcc warnings --- diff --git a/as-dcpu16.c b/as-dcpu16.c index f22e848..1475ddf 100644 --- a/as-dcpu16.c +++ b/as-dcpu16.c @@ -710,7 +710,7 @@ int instr_assemble_(struct dynamic_array *labels, struct instruction_ *i, unsign struct operand_ *o = i->operands; if (opt_.verbose > 2) { - printf("%s: assembling %p ", __func__, i); + printf("%s: assembling %p ", __func__, (void *)i); instruction_print_(i, 1); printf("(line %zu)\n", i->src_line); } @@ -743,7 +743,7 @@ while debugging, always reassemble char *x; unsigned long l; - DEBUG_PRINTF("DAT operand:'%s' next:%p\n", o->operand, o->next); + DEBUG_PRINTF("DAT operand:'%s' next:%p\n", o->operand, (void *)o->next); /* is this a string? */ /* does it start with a quote, and end with the same quote? */ diff --git a/display.c b/display.c index 9d59b29..0fbfbf5 100644 --- a/display.c +++ b/display.c @@ -44,9 +44,9 @@ /* cells are rendered from cell map, which is bitmap of two words, defining four eight-bit columns */ struct pixel_ { - char r; - char g; - char b; + unsigned char r; + unsigned char g; + unsigned char b; }; /* buf will hold image file in memory */