From 92ad74a49fa826fa9c47f5e66c61a39016fa24c2 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Thu, 13 Jun 2013 15:26:17 +0200
Subject: [PATCH] Avoid GCC "unconst" warning.
---
src/cc65/codeent.c | 4 ++--
src/cc65/codeent.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cc65/codeent.c b/src/cc65/codeent.c
index 7372af338..21eef8fe5 100644
--- a/src/cc65/codeent.c
+++ b/src/cc65/codeent.c
@@ -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
* a register (N and Z).
*/
@@ -427,7 +427,7 @@ int CE_UseLoadFlags (const CodeEntry* E)
while (E->Info & OF_UBRA) {
/* Remember the entry so we can detect loops */
- CollAppend (&C, (void*) E);
+ CollAppend (&C, E);
/* Check the target */
if (E->JumpTo == 0 || CollIndex (&C, E->JumpTo->Owner) >= 0) {
diff --git a/src/cc65/codeent.h b/src/cc65/codeent.h
index 634034c6b..72ce626bb 100644
--- a/src/cc65/codeent.h
+++ b/src/cc65/codeent.h
@@ -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)
#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
* a register (N and Z).
*/
--
2.39.5