From 3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Sat, 27 Aug 2022 13:33:51 +0000 Subject: [PATCH] opcodes/riscv-dis.c: Make XLEN variable static Before changing the core disassembler, we take care of minor code clarity issues and improve readability. Since xlen variable is not (and should not) used outside riscv-dis.c, this commit makes this variable static. opcodes/ChangeLog: * riscv-dis.c (xlen): Make this variable static. --- 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 608670bed7f..27e1978d428 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -33,7 +33,7 @@ #include /* Current XLEN for the disassembler. */ -unsigned xlen = 0; +static unsigned xlen = 0; /* Default ISA specification version (constant as of now). */ static enum riscv_spec_class default_isa_spec = ISA_SPEC_CLASS_DRAFT - 1;