From fb0cc53ef61e1f7302f886a07fef53a908a1795d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 30 Mar 2010 20:38:26 +0000 Subject: 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 --- sim/m32r/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sim/m32r/ChangeLog') diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog index 9981230..4c4ca6c 100644 --- a/sim/m32r/ChangeLog +++ b/sim/m32r/ChangeLog @@ -1,3 +1,7 @@ +2010-03-30 Mike Frysinger + + * devices.c (device_error): Add const to message. + 2010-02-11 Doug Evans * cpu.h, * cpu2.h, * cpux.h, * decode.c, * decode2.c, * decodex.c, -- cgit v1.1