From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 886403858410; Fri, 22 Mar 2024 19:17:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 886403858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711135078; bh=Tz3dhdF5GJ/LvjtnK3tNKvfXuFT6awn99pKobm6h0dw=; h=From:To:Subject:Date:From; b=hKUpQCyXqmpJLPGJP0ezADHw/wqhnq/aALWswR829ZPbAAiWkr48lpPH/zp4ByRer B7WdSbF6Zco7xCv3VhEE1rt+2CnNKl148K2wDoy0qXI/kRWW7CJ52vkq4Tc9PV8Nw7 5OMysajcz+6c06Mr6QKDHWlFoR08n7XL6cLQ8gu4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove some unnecessary casts X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 9f1c94481f875134df177bfc6ba1ad4e4e50b478 X-Git-Newrev: af25053d5f9e1867bd0df1d5f168c803e1d7d015 Message-Id: <20240322191758.886403858410@sourceware.org> Date: Fri, 22 Mar 2024 19:17:58 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Daf25053d5f9e= 1867bd0df1d5f168c803e1d7d015 commit af25053d5f9e1867bd0df1d5f168c803e1d7d015 Author: Tom Tromey Date: Thu Mar 21 11:04:25 2024 -0600 Remove some unnecessary casts =20 I found a few unnecessary casts when calling set_gdbarch_disassembler_options_implicit. =20 Approved-By: John Baldwin Diff: --- gdb/mips-tdep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 8339d2f1d4c..107d06191b4 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -8736,14 +8736,14 @@ mips_gdbarch_init (struct gdbarch_info info, struct= gdbarch_list *arches) =20 set_gdbarch_print_insn (gdbarch, gdb_print_insn_mips); if (mips_abi =3D=3D MIPS_ABI_N64) - set_gdbarch_disassembler_options_implicit - (gdbarch, (const char *) mips_disassembler_options_n64); + set_gdbarch_disassembler_options_implicit (gdbarch, + mips_disassembler_options_n64); else if (mips_abi =3D=3D MIPS_ABI_N32) - set_gdbarch_disassembler_options_implicit - (gdbarch, (const char *) mips_disassembler_options_n32); + set_gdbarch_disassembler_options_implicit (gdbarch, + mips_disassembler_options_n32); else - set_gdbarch_disassembler_options_implicit - (gdbarch, (const char *) mips_disassembler_options_o32); + set_gdbarch_disassembler_options_implicit (gdbarch, + mips_disassembler_options_o32); set_gdbarch_disassembler_options (gdbarch, &mips_disassembler_options); set_gdbarch_valid_disassembler_options (gdbarch, disassembler_options_mips ());