diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-04-01 02:21:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-04-01 02:22:58 -0400 |
commit | 269e9c185f67d477a99574f53ead904d50fddfda (patch) | |
tree | 0177a3d3718cc79c55ae0ff07d9d4d974397800d /sim/m32c/load.c | |
parent | 0fe84f3fbe9a740c38a8dbaa0150b8e4c25c69dd (diff) | |
download | gdb-269e9c185f67d477a99574f53ead904d50fddfda.zip gdb-269e9c185f67d477a99574f53ead904d50fddfda.tar.gz gdb-269e9c185f67d477a99574f53ead904d50fddfda.tar.bz2 |
sim: m32c: enable warnings & clean up a bunch
This doesn't clean up all the warnings, just most of them.
The ones that are left will require some care to unravel.
Diffstat (limited to 'sim/m32c/load.c')
-rw-r--r-- | sim/m32c/load.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/m32c/load.c b/sim/m32c/load.c index e763773..0543b6d 100644 --- a/sim/m32c/load.c +++ b/sim/m32c/load.c @@ -27,8 +27,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "cpu.h" #include "mem.h" +#include "load.h" -int (*decode_opcode) () = 0; +int (*decode_opcode) (void) = 0; int default_machine = 0; void @@ -88,12 +89,13 @@ m32c_load (bfd * prog) { char *buf; bfd_size_type size; + bfd_vma base; size = bfd_get_section_size (s); if (size <= 0) continue; - bfd_vma base = bfd_section_lma (prog, s); + base = bfd_section_lma (prog, s); if (verbose) fprintf (stderr, "[load a=%08x s=%08x %s]\n", (int) base, (int) size, bfd_get_section_name (prog, s)); |