mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00: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:
@@ -1612,7 +1612,7 @@ typedef enum
|
||||
|
||||
/* Valid RISCV disassembler options. */
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const char *name;
|
||||
const char *description;
|
||||
|
||||
Reference in New Issue
Block a user