From: michaelh Date: Sun, 2 Sep 2001 04:33:43 +0000 (+0000) Subject: Stopped a couple of warnings. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=6806abbb5bdd22f693b8e58e5c853fe85a3c2e08;p=fw%2Fsdcc Stopped a couple of warnings. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1212 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/z80/gen.c b/src/z80/gen.c index c7a49982..f065a37e 100644 --- a/src/z80/gen.c +++ b/src/z80/gen.c @@ -1018,27 +1018,6 @@ requiresHL (asmop * aop) } } -static char * -fetchLitSpecial (asmop * aop, bool negate, bool xor) -{ - unsigned long v; - value *val = aop->aopu.aop_lit; - - wassert (aop->type == AOP_LIT); - wassert (!IS_FLOAT (val->type)); - - v = (unsigned long) floatFromVal (val); - - if (xor) - v ^= 0x8000; - if (negate) - v = 0-v; - v &= 0xFFFF; - - tsprintf (buffer, "!immedword", v); - return gc_strdup (buffer); -} - static void fetchLitPair (PAIR_ID pairId, asmop * left, int offset) { @@ -3217,11 +3196,13 @@ genIfxJump (iCode * ic, char *jval) ic->generated = 1; } +#if DISABLED static const char * _getPairIdName (PAIR_ID id) { return _pairs[id].name; } +#endif /** Generic compare for > or < */ @@ -6202,4 +6183,26 @@ _isPairUsed (iCode * ic, PAIR_ID pairId) return ret; } +static char * +fetchLitSpecial (asmop * aop, bool negate, bool xor) +{ + unsigned long v; + value *val = aop->aopu.aop_lit; + + wassert (aop->type == AOP_LIT); + wassert (!IS_FLOAT (val->type)); + + v = (unsigned long) floatFromVal (val); + + if (xor) + v ^= 0x8000; + if (negate) + v = 0-v; + v &= 0xFFFF; + + tsprintf (buffer, "!immedword", v); + return gc_strdup (buffer); +} + + */