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
This commit is contained in:
Mike Frysinger
2010-03-30 20:38:26 +00:00
parent 739dfd28c3
commit fb0cc53ef6
8 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* devices.c (device_error): Add const to message.
2010-02-11 Doug Evans <dje@sebabeach.org>
* cpu.h, * cpu2.h, * cpux.h, * decode.c, * decode2.c, * decodex.c,

View File

@ -102,6 +102,6 @@ device_io_write_buffer (device *me, const void *source, int space,
}
void
device_error (device *me, char *message, ...)
device_error (device *me, const char *message, ...)
{
}