Avoid GCC "unconst" warning.
This commit is contained in:
@@ -412,7 +412,7 @@ int CE_IsKnownImm (const CodeEntry* E, unsigned long Num)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int CE_UseLoadFlags (const CodeEntry* E)
|
int CE_UseLoadFlags (CodeEntry* E)
|
||||||
/* Return true if the instruction uses any flags that are set by a load of
|
/* Return true if the instruction uses any flags that are set by a load of
|
||||||
* a register (N and Z).
|
* a register (N and Z).
|
||||||
*/
|
*/
|
||||||
@@ -427,7 +427,7 @@ int CE_UseLoadFlags (const CodeEntry* E)
|
|||||||
while (E->Info & OF_UBRA) {
|
while (E->Info & OF_UBRA) {
|
||||||
|
|
||||||
/* Remember the entry so we can detect loops */
|
/* Remember the entry so we can detect loops */
|
||||||
CollAppend (&C, (void*) E);
|
CollAppend (&C, E);
|
||||||
|
|
||||||
/* Check the target */
|
/* Check the target */
|
||||||
if (E->JumpTo == 0 || CollIndex (&C, E->JumpTo->Owner) >= 0) {
|
if (E->JumpTo == 0 || CollIndex (&C, E->JumpTo->Owner) >= 0) {
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ INLINE int CE_IsCallTo (const CodeEntry* E, const char* Name)
|
|||||||
# define CE_IsCallTo(E, Name) ((E)->OPC == OP65_JSR && strcmp ((E)->Arg, (Name)) == 0)
|
# define CE_IsCallTo(E, Name) ((E)->OPC == OP65_JSR && strcmp ((E)->Arg, (Name)) == 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int CE_UseLoadFlags (const CodeEntry* E);
|
int CE_UseLoadFlags (CodeEntry* E);
|
||||||
/* Return true if the instruction uses any flags that are set by a load of
|
/* Return true if the instruction uses any flags that are set by a load of
|
||||||
* a register (N and Z).
|
* a register (N and Z).
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user