From: Tsukasa OI Date: Sat, 27 Aug 2022 13:33:51 +0000 (+0000) Subject: opcodes/riscv-dis.c: Make XLEN variable static X-Git-Tag: gdb-13-branchpoint~882 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45;p=thirdparty%2Fbinutils-gdb.git 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. --- 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;