diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-04-12 16:00:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-04-12 16:00:44 +0000 |
commit | e377ca52199a29a8502389c4d29d8517903b7f2f (patch) | |
tree | 6ebd9c8161ef8a704b14ea42314e33cc5a3c34a0 /sim/common/ChangeLog | |
parent | 3b273a55348fa8673f02979a959c445e88ca3807 (diff) | |
download | gdb-e377ca52199a29a8502389c4d29d8517903b7f2f.zip gdb-e377ca52199a29a8502389c4d29d8517903b7f2f.tar.gz gdb-e377ca52199a29a8502389c4d29d8517903b7f2f.tar.bz2 |
sim: constify dup_arg_p
The dup_arg_p function is only given const strings, and it maintains a
local table of those const strings. So constify the whole thing to fix
the GCC warnings:
common/sim-options.c: In function 'sim_parse_args':
common/sim-options.c:559: warning: passing argument 1 of 'dup_arg_p'
discards qualifiers from pointer target type
common/sim-options.c: In function 'print_help':
common/sim-options.c:675: warning: passing argument 1 of 'dup_arg_p'
discards qualifiers from pointer target type
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/ChangeLog')
-rw-r--r-- | sim/common/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 1fef069..1bf564a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2010-04-12 Mike Frysinger <vapier@gentoo.org> + + * sim-options.c (dup_arg_p): Add "const" to the "arg" argument, + the local "arg_table" variable, and the xmalloc cast. + 2010-04-10 Mike Frysinger <vapier@gentoo.org> * sim-fpu.c (sim_fpu_print_status): Add const markings to local |