aboutsummaryrefslogtreecommitdiff
path: root/sim/common/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 20:39:38 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 20:39:38 +0000
commit15f3c2de23e579e8965294c24de2a0bb5971273b (patch)
treeef0f89f6d742740d12119c86354ffcfce3aa2d56 /sim/common/ChangeLog
parentfb0cc53ef61e1f7302f886a07fef53a908a1795d (diff)
downloadgdb-15f3c2de23e579e8965294c24de2a0bb5971273b.zip
gdb-15f3c2de23e579e8965294c24de2a0bb5971273b.tar.gz
gdb-15f3c2de23e579e8965294c24de2a0bb5971273b.tar.bz2
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'
Diffstat (limited to 'sim/common/ChangeLog')
-rw-r--r--sim/common/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 50418a7..64278e0 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,10 @@
2010-03-30 Mike Frysinger <vapier@gentoo.org>
+ * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
+ the SIM_HAVE_ADDR_RANGE define.
+
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
* sim-core.h (device_error): Add const to message, and add printf
format attribute.