From e2032a302e614b300909c8304cfa7d4f34eb023c Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Fri, 4 May 2012 15:04:57 -0700 Subject: [PATCH] minor cleanup quiet some gcc warnings --- as-dcpu16.c | 4 ++-- display.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 */ -- 2.43.2