diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-04-03 09:03:57 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-04-03 09:14:50 -0700 |
commit | c41cf6fdf514fce6b69f8f875b6903b2a3910f89 (patch) | |
tree | 4fb3313ffb1a8c148c99ea95fa176b634f7e4853 /gas | |
parent | 2f5f29cada3c06c9c26f4da5994951effee7d6f7 (diff) | |
download | gdb-c41cf6fdf514fce6b69f8f875b6903b2a3910f89.zip gdb-c41cf6fdf514fce6b69f8f875b6903b2a3910f89.tar.gz gdb-c41cf6fdf514fce6b69f8f875b6903b2a3910f89.tar.bz2 |
RISC-V: Avoid a const warning
2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
* config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
avoid const warnings.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-riscv.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 169b2ff..557b43c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> + + * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to + avoid const warnings. + 2017-03-30 Palmer Dabbelt <palmer@dabbelt.com> * config/tc-riscv.c (riscv_clear_subsets): New function. diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 2830ba1..0a9817a 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -126,7 +126,7 @@ riscv_clear_subsets (void) while (riscv_subsets != NULL) { struct riscv_subset *next = riscv_subsets->next; - free (riscv_subsets->name); + free ((void *) riscv_subsets->name); free (riscv_subsets); riscv_subsets = next; } |