This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] fix simulator compilation warning
- From: Doug Evans <dje at sebabeach dot org>
- To: gdb-patches at sourceware dot org
- Date: Sun, 22 Nov 2009 14:31:21 -0800 (PST)
- Subject: [commit] fix simulator compilation warning
Hi.
I checked this in to silence a compilation warning.
2009-11-22 Doug Evans <dje@sebabeach.org>
* cgen-trace.h (trace_extract): Add cast to fix warning.
Index: cgen-trace.c
===================================================================
RCS file: /cvs/src/src/sim/common/cgen-trace.c,v
retrieving revision 1.10
diff -u -p -r1.10 cgen-trace.c
--- cgen-trace.c 14 Jan 2009 10:53:06 -0000 1.10
+++ cgen-trace.c 22 Nov 2009 22:24:21 -0000
@@ -192,7 +192,7 @@ trace_extract (SIM_CPU *cpu, IADDR pc, c
va_start (args, name);
trace_printf (CPU_STATE (cpu), cpu, "Extract: 0x%.*lx: %s ",
- SIZE_PC, pc, name);
+ SIZE_PC, (unsigned long) pc, name);
do {
int type,ival;