diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:43:36 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:43:36 +0000 |
commit | d946c2884d66f64c4b671bbed16283bcae3c5667 (patch) | |
tree | e5c08a794069c9dd16c0d15fe0ff1c4fdf65b0db /sim/common/sim-hw.c | |
parent | ff398ee4f38a388e9565a63458e90ff56aace188 (diff) | |
download | gdb-d946c2884d66f64c4b671bbed16283bcae3c5667.zip gdb-d946c2884d66f64c4b671bbed16283bcae3c5667.tar.gz gdb-d946c2884d66f64c4b671bbed16283bcae3c5667.tar.bz2 |
sim: fix printf format warning about non-string literal
This is the normal "passing a buffer straight to printf makes GCC warn".
While we know this particular case is fine, the trend in this source tree
is to fix this anyways to avoid the warnings.
Diffstat (limited to 'sim/common/sim-hw.c')
-rw-r--r-- | sim/common/sim-hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-hw.c b/sim/common/sim-hw.c index d9868d3..7481492 100644 --- a/sim/common/sim-hw.c +++ b/sim/common/sim-hw.c @@ -257,7 +257,7 @@ hw_option_handler (struct sim_state *sd, sim_cpu *cpu, int opt, case OPTION_HW_DEVICE: { - hw_tree_parse (STATE_HW (sd)->tree, arg); + hw_tree_parse (STATE_HW (sd)->tree, "%s", arg); return SIM_RC_OK; } |