diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-08-01 09:18:15 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-08-01 09:18:15 +0200 |
commit | f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451 (patch) | |
tree | 60c765ed80b5cf61aecb6ce96df6d33d7a7fafbe /opcodes | |
parent | b2250bfa948be835b8bf7e19f1d3a822a4d54073 (diff) | |
download | binutils-f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451.zip binutils-f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451.tar.gz binutils-f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451.tar.bz2 |
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.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/riscv-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index f6af9c4..fa2d44a 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -1612,7 +1612,7 @@ typedef enum /* Valid RISCV disassembler options. */ -static struct +static const struct { const char *name; const char *description; |