aboutsummaryrefslogtreecommitdiff
path: root/sim/cris
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 20:38:26 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 20:38:26 +0000
commitfb0cc53ef61e1f7302f886a07fef53a908a1795d (patch)
tree338f99a1cc4abd6544ccd232560e5a327831f7a7 /sim/cris
parent739dfd28c359b1b0ef4a78092f990f86ca0e165b (diff)
downloadgdb-fb0cc53ef61e1f7302f886a07fef53a908a1795d.zip
gdb-fb0cc53ef61e1f7302f886a07fef53a908a1795d.tar.gz
gdb-fb0cc53ef61e1f7302f886a07fef53a908a1795d.tar.bz2
sim: update device_error() prototype
The device_error() takes a printf style string, so update the prototype accordingly. The message should be const and it should use an attribute. This fixes gcc warnings like: sim-core.c: In function 'sim_core_map_attach': sim-core.c:200: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type sim-core.c:237: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type sim-core.c: In function 'sim_core_attach': sim-core.c:304: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type sim-core.c:314: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type sim-core.c:335: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type sim-core.c:348: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
Diffstat (limited to 'sim/cris')
-rw-r--r--sim/cris/ChangeLog3
-rw-r--r--sim/cris/devices.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog
new file mode 100644
index 0000000..d7aadd0
--- /dev/null
+++ b/sim/cris/ChangeLog
@@ -0,0 +1,3 @@
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
+ * devices.c (device_error): Add const to message.
diff --git a/sim/cris/devices.c b/sim/cris/devices.c
index 7218c66..50032a6 100644
--- a/sim/cris/devices.c
+++ b/sim/cris/devices.c
@@ -34,7 +34,7 @@ struct _device { char dummy; } cris_devices;
void
device_error (device *me ATTRIBUTE_UNUSED,
- char *message ATTRIBUTE_UNUSED,
+ const char *message ATTRIBUTE_UNUSED,
...)
{
abort ();