This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/sim/common ChangeLog sim-trace.c
- From: vapier at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 30 Mar 2010 20:39:38 -0000
- Subject: src/sim/common ChangeLog sim-trace.c
CVSROOT: /cvs/src
Module name: src
Changes by: vapier@sourceware.org 2010-03-30 20:39:38
Modified files:
sim/common : ChangeLog sim-trace.c
Log message:
sim: fix unused cpu_nr warnings
The trace_option_handler() function only uses cpu_nr when the
SIM_HAVE_ADDR_RANGE define is enabled. So move the decl down
to where the code exists. Otherwise GCC warns:
sim-trace.c: In function 'trace_option_handler':
sim-trace.c:236: warning: unused variable 'cpu_nr'
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/ChangeLog.diff?cvsroot=src&r1=1.199&r2=1.200
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-trace.c.diff?cvsroot=src&r1=1.9&r2=1.10