- Use a double cast to avoid GCC4 warning

This commit is contained in:
Jan Stoess 2007-11-27 12:07:09 +01:00
parent ae5056d6ad
commit 2b3befa8b6
1 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ extern space_t *current_disas_space;
#if defined(CONFIG_KDB_DISAS)
extern "C" int disas(addr_t pc);
INLINE void disas_addr (addr_t ip, char * str = "")
INLINE void disas_addr (addr_t ip, const char * str = "")
{
printf ("%p ", ip);
current_disas_space = kdb.kdb_current->get_space();
@ -55,7 +55,7 @@ INLINE void disas_addr (addr_t ip, char * str = "")
printf ("\n");
}
#else
INLINE void disas_addr (addr_t ip, char * str = "")
INLINE void disas_addr (addr_t ip, const char * str = "")
{
printf ("ip=%p -- %s\n", ip, str);
}
@ -222,7 +222,7 @@ bool kdb_t::pre()
else
#endif
/* mov addr, AREG */
mapped = readmem (space, addr_offset(addr, 3), (word_t *) &user_addr);
mapped = readmem (space, addr_offset(addr, 3), (word_t *) (addr_t) &user_addr);
}
else if (c == 0x48)
{