This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch sim/mips] Another -Werror tweak
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 18 Jun 2002 17:31:46 -0400
- Subject: [patch sim/mips] Another -Werror tweak
Keep -Wuninitialized quiet.
committed,
Andrew
2002-06-18 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_firmware_command): Initialize `address'.
Index: interp.c
===================================================================
RCS file: /cvs/src/src/sim/mips/interp.c,v
retrieving revision 1.16
diff -u -r1.16 interp.c
--- interp.c 9 Jun 2002 15:45:49 -0000 1.16
+++ interp.c 18 Jun 2002 20:56:01 -0000
@@ -1077,7 +1077,10 @@
}
}
else
- address_present = 0;
+ {
+ address_present = 0;
+ address = -1; /* Dummy value. */
+ }
}
if (! strncmp (arg, "idt", 3))