From f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 1 Aug 2025 09:18:15 +0200 Subject: 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. --- opcodes/riscv-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcodes') 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; -- cgit v1.1