From f67b2bc9d9e0e7ef2ad4bc2f05da940556ebb451 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 1 Aug 2025 09:18:15 +0200 Subject: [PATCH] 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(-) 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; -- 2.47.2