From: ggn Date: Sat, 31 Oct 2015 11:02:40 +0000 (+0200) Subject: A few compiler warnings pacified. X-Git-Tag: v2.1.0~196 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=d9c1d993917d9f0101747e137709fe2ba9854b7f;hp=689d9bc6a5776f54995b68ad2493652f55b9d419 A few compiler warnings pacified. --- diff --git a/direct.c b/direct.c index 04b576c..c4395f6 100644 --- a/direct.c +++ b/direct.c @@ -39,15 +39,15 @@ int (*dirtab[])() = { d_text, // 6 text d_abs, // 7 abs d_comm, // 8 comm - d_init, // 9 init + (void *)d_init, // 9 init d_cargs, // 10 cargs - d_goto, // 11 goto - d_dc, // 12 dc - d_ds, // 13 ds + (void *)d_goto, // 11 goto + (void *)d_dc, // 12 dc + (void *)d_ds, // 13 ds d_undmac, // 14 undefmac d_gpu, // 15 .gpu d_dsp, // 16 .dsp - d_dcb, // 17 dcb + (void *)d_dcb, // 17 dcb d_unimpl, // 18* set d_unimpl, // 19* reg d_unimpl, // 20 dump diff --git a/object.c b/object.c index 2702c54..d09388b 100644 --- a/object.c +++ b/object.c @@ -157,7 +157,7 @@ char * constr_symtab(register char * buf, SYM * sym, int globflag) else w |= AL_EXTERN; /* imported symbol */ *buf++ = w >> 8; - *buf++ = w; + *buf++ = (char)w; z = sym->svalue;