From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 470B1385DC37 for ; Tue, 19 Dec 2023 10:52:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 470B1385DC37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 470B1385DC37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702983142; cv=none; b=noi5W54zOz3vBmtpZ2JPZ+MOCGFMUk4yWm+m9wBSIq5AokyHi6YmjMs88u9JRByrzVrdQbog/8MYUgZkVUfmXhialtEGk9qVzOxkEuro9RvZSkDJPXJKsS+Y5SW4bd8BWcreM/aF+ggg/mdY4bI9Jp6JiciVhvVm2xirpEPk30c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702983142; c=relaxed/simple; bh=vUOHBK34DPwi5Rn4XYxpUZnphMZc1dfVmc3LICHsGIY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=A160ZoljN73Zmaqtf82YYhRZr5w2pV1eVGQGZ08w34RZwZHa7xCIr4ZCcX8KCPeeX2ylCYx8K5rSPAr3KukPpPwOz1FJ1RKg1HJ7WIbFDLs117JPAEJrGf2W7ZiTpo1FH0bumQ1KJnAjq3AmSvKS5T1e3iJkCtVqpmknGkK5Do4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id E6F4033BE19; Tue, 19 Dec 2023 10:52:18 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 10/21] sim: h8300: fix -Wunused-variable warnings Date: Tue, 19 Dec 2023 05:51:44 -0500 Message-ID: <20231219105155.10433-10-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219105155.10433-1-vapier@gentoo.org> References: <20231219105155.10433-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --- sim/h8300/compile.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 51ad66df6810..8ae7757ee1b1 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -735,7 +735,6 @@ decode (SIM_DESC sd, sim_cpu *cpu, int addr, unsigned char *data, decoded_inst * /* Fill in the args. */ { const op_type *args = q->args.nib; - int hadone = 0; int nargs; for (nargs = 0; @@ -1625,7 +1624,6 @@ static void sort_opcodes_and_setup_nibble_indices (struct h8_opcode *ops) { const struct h8_opcode *q; - int *indices; int i; /* First sort the OPS array. */ @@ -1771,7 +1769,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu) int trace = 0; int intMask = 0; int oldmask; - const struct h8300_sim_state *state = H8300_SIM_STATE (sd); host_callback *sim_callback = STATE_CALLBACK (sd); init_pointers (sd); @@ -2573,8 +2570,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu) int no_of_args = 0; /* The no. or cmdline args. */ int current_location = 0; /* Location of string. */ int old_sp = 0; /* The Initial Stack Pointer. */ - int no_of_slots = 0; /* No. of slots required on the stack - for storing cmdline args. */ int sp_move = 0; /* No. of locations by which the stack needs to grow. */ int new_sp = 0; /* The final stack pointer location passed @@ -4578,7 +4573,6 @@ void sim_info (SIM_DESC sd, bool verbose) { sim_cpu *cpu = STATE_CPU (sd, 0); - const struct h8300_sim_state *state = H8300_SIM_STATE (sd); double timetaken = (double) h8_get_ticks (cpu) / (double) now_persec (); double virttime = h8_get_cycles (cpu) / 10.0e6; @@ -4880,7 +4874,6 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, { SIM_CPU *cpu = STATE_CPU (sd, 0); int i = 0; - int len_arg = 0; int no_of_args = 0; if (abfd != NULL) -- 2.43.0