diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-01-05 17:13:36 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-05 17:13:36 +0000 |
commit | cc25892bf4b18282d58c4d8a3e85705142ba7ec0 (patch) | |
tree | 9c7bbed4ad8a302177c157c8905d6ed54f32897f /sim/ChangeLog | |
parent | cc322803a5a55e75c91b5ad1fd210b79c4a49959 (diff) | |
download | gdb-cc25892bf4b18282d58c4d8a3e85705142ba7ec0.zip gdb-cc25892bf4b18282d58c4d8a3e85705142ba7ec0.tar.gz gdb-cc25892bf4b18282d58c4d8a3e85705142ba7ec0.tar.bz2 |
sim: tweak load buffer type to avoid signed warnings
The sim_load_file func creates a buffer with arbitrary data in it (reads
it via the bfd). It then passes it on to a sim_write_fn which expects a
unsigned char buffer. Since sim_load_file itself doesn't care about the
contents, tweak the type to avoid signed mismatch warnings from gcc:
common/sim-load.c: In function ‘sim_load_file’:
common/sim-load.c:143: warning: pointer targets in passing argument 3 of ‘do_write’ differ in signedness
common/sim-load.c:143: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/ChangeLog')
0 files changed, 0 insertions, 0 deletions