From: Palmer Dabbelt Date: Mon, 3 Apr 2017 16:03:57 +0000 (-0700) Subject: RISC-V: Avoid a const warning X-Git-Tag: users/ARM/embedded-binutils-2_28-branch-2017q2~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb580b80d725957409456677088504a95f26933d;p=thirdparty%2Fbinutils-gdb.git RISC-V: Avoid a const warning 2017-04-03 Palmer Dabbelt * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to avoid const warnings. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 795c7dc91dc..d6ab8a1e344 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2017-04-03 Palmer Dabbelt + + * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to + avoid const warnings. + 2017-03-30 Palmer Dabbelt * config/tc-riscv.c (riscv_clear_subsets): New function. diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 6490b1a1ae0..88457c6fd43 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; }