1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00

Fixed some gcc warnings

git-svn-id: svn://svn.cc65.org/cc65/trunk@169 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-07-18 22:39:35 +00:00
parent bb2fbd6282
commit 5337ff7bcd
3 changed files with 8 additions and 8 deletions

View File

@ -2491,7 +2491,7 @@ void g_add (unsigned flags, unsigned long val)
};
if (flags & CF_CONST) {
flags &= ~CF_FORCECHAR; // Handle chars as ints
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
g_push (flags & ~CF_CONST, 0);
}
oper (flags, val, ops);
@ -2510,7 +2510,7 @@ void g_sub (unsigned flags, unsigned long val)
};
if (flags & CF_CONST) {
flags &= ~CF_FORCECHAR; // Handle chars as ints
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
g_push (flags & ~CF_CONST, 0);
}
oper (flags, val, ops);
@ -2552,7 +2552,7 @@ void g_mul (unsigned flags, unsigned long val)
}
/* If the right hand side is const, the lhs is not on stack but still
* in the primary register.
* in the primary register.
*/
if (flags & CF_CONST) {
@ -2603,7 +2603,7 @@ void g_mul (unsigned flags, unsigned long val)
/* If we go here, we didn't emit code. Push the lhs on stack and fall
* into the normal, non-optimized stuff.
*/
flags &= ~CF_FORCECHAR; // Handle chars as ints
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
g_push (flags & ~CF_CONST, 0);
}
@ -2633,7 +2633,7 @@ void g_div (unsigned flags, unsigned long val)
/* Generate a division */
if (flags & CF_CONST) {
/* lhs is not on stack */
flags &= ~CF_FORCECHAR; // Handle chars as ints
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
g_push (flags & ~CF_CONST, 0);
}
oper (flags, val, ops);
@ -2661,7 +2661,7 @@ void g_mod (unsigned flags, unsigned long val)
/* Do it the hard way... */
if (flags & CF_CONST) {
/* lhs is not on stack */
flags &= ~CF_FORCECHAR; // Handle chars as ints
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
g_push (flags & ~CF_CONST, 0);
}
oper (flags, val, ops);

View File

@ -167,7 +167,7 @@ const char* GetLiteral (unsigned Offs)
/* Get a pointer to the literal with the given offset in the pool */
{
CHECK (Offs < LiteralOffs);
return &LiteralPool[Offs];
return (const char*) &LiteralPool[Offs];
}

View File

@ -753,7 +753,7 @@ enum {
PP_LINE,
PP_PRAGMA,
PP_UNDEF,
PP_ILLEGAL,
PP_ILLEGAL
};
static const struct tok_elt pre_toks[] = {