aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-08-01 09:18:15 +0200
committerJan Beulich <jbeulich@suse.com>2025-08-01 09:18:15 +0200
commitf67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451 (patch)
tree60c765ed80b5cf61aecb6ce96df6d33d7a7fafbe /opcodes
parentb2250bfa948be835b8bf7e19f1d3a822a4d54073 (diff)
downloadbinutils-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.c2
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;