]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
opcodes/ppc: make ppc_opts[] static const
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Aug 2025 07:17:54 +0000 (09:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Aug 2025 07:17:54 +0000 (09:17 +0200)
There's no reason to allow the array to be modifiable, nor for it to be
globally visible.

opcodes/ppc-dis.c

index 3e210341228cbd12630b79714db92fb6b0c8c0a7..6e4a3b8d2b29855f0ac3b9e6b4d6ba5bcc71448a 100644 (file)
@@ -72,7 +72,7 @@ struct ppc_mopt {
   ppc_cpu_t sticky;
 };
 
-struct ppc_mopt ppc_opts[] = {
+static const struct ppc_mopt ppc_opts[] = {
   { "403",     PPC_OPCODE_PPC | PPC_OPCODE_403,
     0 },
   { "405",     PPC_OPCODE_PPC | PPC_OPCODE_403 | PPC_OPCODE_405,