This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Another sim/common -Werror tweak
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 17 Jun 2002 19:56:06 -0400
- Subject: [patch] Another sim/common -Werror tweak
(Keep finding them :-/)
committed,
Andrew
2002-06-17 Andrew Cagney <cagney@redhat.com>
* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
Index: hw-events.c
===================================================================
RCS file: /cvs/src/src/sim/common/hw-events.c,v
retrieving revision 1.3
diff -u -r1.3 hw-events.c
--- hw-events.c 27 Nov 2000 19:53:35 -0000 1.3
+++ hw-events.c 17 Jun 2002 23:51:33 -0000
@@ -88,6 +88,7 @@
{
struct hw_event *event;
va_list dummy;
+ memset (&dummy, 0, sizeof dummy);
event = hw_event_queue_schedule_vtracef (me, delta_time, callback, data,
NULL, dummy);
return event;