mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
opcodes/riscv: make riscv_options[] const
There's no reason to allow the array to be modifiable. In fact the compiler is able to infer this, placing the array in .data.rel.ro, but let's make it explicit.
This commit is contained in:
parent
b2250bfa94
commit
f67b2bc9d9
1 changed files with 1 additions and 1 deletions
|
|
@ -1612,7 +1612,7 @@ typedef enum
|
|||
|
||||
/* Valid RISCV disassembler options. */
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const char *name;
|
||||
const char *description;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue