mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06: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:
parent
bb2fbd6282
commit
5337ff7bcd
@ -2491,7 +2491,7 @@ void g_add (unsigned flags, unsigned long val)
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (flags & CF_CONST) {
|
if (flags & CF_CONST) {
|
||||||
flags &= ~CF_FORCECHAR; // Handle chars as ints
|
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
|
||||||
g_push (flags & ~CF_CONST, 0);
|
g_push (flags & ~CF_CONST, 0);
|
||||||
}
|
}
|
||||||
oper (flags, val, ops);
|
oper (flags, val, ops);
|
||||||
@ -2510,7 +2510,7 @@ void g_sub (unsigned flags, unsigned long val)
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (flags & CF_CONST) {
|
if (flags & CF_CONST) {
|
||||||
flags &= ~CF_FORCECHAR; // Handle chars as ints
|
flags &= ~CF_FORCECHAR; /* Handle chars as ints */
|
||||||
g_push (flags & ~CF_CONST, 0);
|
g_push (flags & ~CF_CONST, 0);
|
||||||
}
|
}
|
||||||
oper (flags, val, ops);
|
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
|
/* 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) {
|
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
|
/* If we go here, we didn't emit code. Push the lhs on stack and fall
|
||||||
* into the normal, non-optimized stuff.
|
* 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);
|
g_push (flags & ~CF_CONST, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2633,7 +2633,7 @@ void g_div (unsigned flags, unsigned long val)
|
|||||||
/* Generate a division */
|
/* Generate a division */
|
||||||
if (flags & CF_CONST) {
|
if (flags & CF_CONST) {
|
||||||
/* lhs is not on stack */
|
/* 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);
|
g_push (flags & ~CF_CONST, 0);
|
||||||
}
|
}
|
||||||
oper (flags, val, ops);
|
oper (flags, val, ops);
|
||||||
@ -2661,7 +2661,7 @@ void g_mod (unsigned flags, unsigned long val)
|
|||||||
/* Do it the hard way... */
|
/* Do it the hard way... */
|
||||||
if (flags & CF_CONST) {
|
if (flags & CF_CONST) {
|
||||||
/* lhs is not on stack */
|
/* 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);
|
g_push (flags & ~CF_CONST, 0);
|
||||||
}
|
}
|
||||||
oper (flags, val, ops);
|
oper (flags, val, ops);
|
||||||
|
@ -167,7 +167,7 @@ const char* GetLiteral (unsigned Offs)
|
|||||||
/* Get a pointer to the literal with the given offset in the pool */
|
/* Get a pointer to the literal with the given offset in the pool */
|
||||||
{
|
{
|
||||||
CHECK (Offs < LiteralOffs);
|
CHECK (Offs < LiteralOffs);
|
||||||
return &LiteralPool[Offs];
|
return (const char*) &LiteralPool[Offs];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -753,7 +753,7 @@ enum {
|
|||||||
PP_LINE,
|
PP_LINE,
|
||||||
PP_PRAGMA,
|
PP_PRAGMA,
|
||||||
PP_UNDEF,
|
PP_UNDEF,
|
||||||
PP_ILLEGAL,
|
PP_ILLEGAL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct tok_elt pre_toks[] = {
|
static const struct tok_elt pre_toks[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user