From: Jan Beulich Date: Fri, 1 Aug 2025 07:18:15 +0000 (+0200) Subject: opcodes/riscv: make riscv_options[] const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index f6af9c47a25..fa2d44af28f 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;