diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-03-01 18:58:34 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-03-01 18:58:34 +0000 |
commit | 8bfd30b27f14199b2bc7ed371b604cefcfafa8b0 (patch) | |
tree | 4f04ece8aae86f180015132882367a4df98864bb /gdb/rs6000-tdep.c | |
parent | 0b153077ec28b80ebfa0fb77bf281422c11648c3 (diff) | |
download | fsf-binutils-gdb-8bfd30b27f14199b2bc7ed371b604cefcfafa8b0.zip fsf-binutils-gdb-8bfd30b27f14199b2bc7ed371b604cefcfafa8b0.tar.gz fsf-binutils-gdb-8bfd30b27f14199b2bc7ed371b604cefcfafa8b0.tar.bz2 |
Build without warnings under Linux.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 6cac92e..f08c77d 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -383,7 +383,7 @@ push_dummy_frame () } /* Save sp or so called back chain right here. */ - write_memory (sp-DUMMY_FRAME_SIZE, &sp, 4); + write_memory (sp-DUMMY_FRAME_SIZE, (char *)&sp, 4); sp -= DUMMY_FRAME_SIZE; /* And finally, this is the back chain. */ @@ -852,7 +852,7 @@ ran_out_of_registers_for_arguments: read_memory (saved_sp, tmp_buffer, 24); write_memory (sp, tmp_buffer, 24); - write_memory (sp, &saved_sp, 4); /* set back chain properly */ + write_memory (sp, (char *)&saved_sp, 4); /* set back chain properly */ target_store_registers (-1); return sp; |