From patchwork Sat Mar 30 13:34:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2" X-Patchwork-Id: 1918088 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lRcqBRfm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V6JDn3HVKz1yWv for ; Sun, 31 Mar 2024 00:35:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BE30C3858C55 for ; Sat, 30 Mar 2024 13:35:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by sourceware.org (Postfix) with ESMTPS id 754DE3858D20 for ; Sat, 30 Mar 2024 13:34:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 754DE3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 754DE3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711805700; cv=none; b=uJ3FBTrhCEfqDI9k5lysRoHdhX/rCY5kAR1GqL5n8gxNPOKfcRjGHUI9jOGw7nDOlRrgvrCLINwnc0z2uIMjHUrzWRmfAFGSeXNPFlreSlIHJ09m/S2sjdEbSUXOmqM+wqBiJfmlom0SqqusqAkI9n3kS2xaVg+spgRCaFJvFi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711805700; c=relaxed/simple; bh=TEcZGQPwbvCdYTbsWrMPPCaKhlfFkOh8qgMQa9Ck8uk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=MdGXaBlGFyTBfNqYVuGpsyhS7vaQNaPtHrChr1AeadDyehxcQKWwmoMAy/u/R5+k2kdu5WWJFx3h51/QXjyuEGZkdzzQP7blgs7De2ieiVOKkfWIpRSt7qagW8k6OJaS90Ybalx0sy9ZHlIMU+61fTY7NDucRpRfeYxHMdsf4ZM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711805698; x=1743341698; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TEcZGQPwbvCdYTbsWrMPPCaKhlfFkOh8qgMQa9Ck8uk=; b=lRcqBRfmlxe+fUMZm5yqasLx3Lw0nEnYcA2R1x7jf2lHGtl03vqbIudy R0XATbswVZPjKJZisEWrgMZoCHASM4moJySObc3J1RzKbS462kCSUk7qw wDBlbQ4MHPz7+L8lww3Bf7Bp7eBWQEHflXZnWDVST8C5+Mg8JO8Sy2Cyz xdLcOnDY6Hlop8RGiqUq8LE/v2Cdt6aZHuNXcdlA8ACILzFtfQSsWq1dE SIeO3ubHeL72z6ql+0jnSg1KkHyIAoy5iuSo5axK3eeqqiz4zOykLTeS9 Jcy2IQTHrTNz/GQqjrM0QZNT4NueC8LTkiTuiqGb1QSI+F3aEeXYTAeg8 g==; X-CSE-ConnectionGUID: 8nrnX95TTamobF8rpQ5pvw== X-CSE-MsgGUID: H9zEZMuURRm3fCtKTl1tHQ== X-IronPort-AV: E=McAfee;i="6600,9927,11028"; a="6825301" X-IronPort-AV: E=Sophos;i="6.07,168,1708416000"; d="scan'208";a="6825301" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2024 06:34:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,168,1708416000"; d="scan'208";a="21900288" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmviesa004.fm.intel.com with ESMTP; 30 Mar 2024 06:34:55 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail03.sh.intel.com (Postfix) with ESMTP id F2F991007372; Sat, 30 Mar 2024 21:34:53 +0800 (CST) From: pan2.li@intel.com To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@gmail.com, yanzhang.wang@intel.com, Pan Li Subject: [PATCH] RISC-V: Fix one unused varable in riscv_subset_list::parse Date: Sat, 30 Mar 2024 21:34:52 +0800 Message-Id: <20240330133452.2473222-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org From: Pan Li This patch would like to fix one unused variable as below: ../../gcc/common/config/riscv/riscv-common.cc: In static member function 'static riscv_subset_list* riscv_subset_list::parse(const char*, location_t)': ../../gcc/common/config/riscv/riscv-common.cc:1501:19: error: unused variable 'itr' [-Werror=unused-variable] 1501 | riscv_subset_t *itr; The variable consume code was removed but missed the var itself in previous. Thus, we have unused variable here. gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_subset_list::parse): Remove unused var decl. Signed-off-by: Pan Li --- gcc/common/config/riscv/riscv-common.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 7095f303cbb..43b7549e3ec 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -1498,7 +1498,6 @@ riscv_subset_list::parse (const char *arch, location_t loc) return NULL; riscv_subset_list *subset_list = new riscv_subset_list (arch, loc); - riscv_subset_t *itr; const char *p = arch; p = subset_list->parse_base_ext (p); if (p == NULL)