From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7896) id 2D4FA3858C56; Fri, 14 Oct 2022 05:23:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D4FA3858C56 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tsukasa OI To: bfd-cvs@sourceware.org Subject: [binutils-gdb] opcodes/riscv-dis.c: Make XLEN variable static X-Act-Checkin: binutils-gdb X-Git-Author: Tsukasa OI X-Git-Refname: refs/heads/master X-Git-Oldrev: 354c1c098abe2b5cbc9da9751d29c5e5a0072376 X-Git-Newrev: 3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45 Message-Id: <20221014052325.2D4FA3858C56@sourceware.org> Date: Fri, 14 Oct 2022 05:23:25 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2022 05:23:25 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3009ffe06c8e= de5fbb7c9d37dfc731ce2c8fdf45 commit 3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45 Author: Tsukasa OI Date: Sat Aug 27 13:33:51 2022 +0000 opcodes/riscv-dis.c: Make XLEN variable static =20 Before changing the core disassembler, we take care of minor code clari= ty issues and improve readability. =20 Since xlen variable is not (and should not) used outside riscv-dis.c, this commit makes this variable static. =20 opcodes/ChangeLog: =20 * riscv-dis.c (xlen): Make this variable static. Diff: --- 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 =20 /* Current XLEN for the disassembler. */ -unsigned xlen =3D 0; +static unsigned xlen =3D 0; =20 /* Default ISA specification version (constant as of now). */ static enum riscv_spec_class default_isa_spec =3D ISA_SPEC_CLASS_DRAFT - 1;