This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]