sim: m32c: enable warnings & clean up a bunch
[deliverable/binutils-gdb.git] / sim / m32c / load.c
index e763773f7f8b643fac2c35fd2102dc238389949f..0543b6d080eb6b496a99f2813b7ed0dd332bb45e 100644 (file)
@@ -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));
This page took 0.023819 seconds and 4 git commands to generate.