From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id CA78F3858C30; Tue, 21 Nov 2023 04:06:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA78F3858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700539596; bh=PxDl9ZoF3fXX0+wamMqyp/N4ScL6QVaRHPO88+X4UAY=; h=From:To:Subject:Date:From; b=suvM371dhez4PKH+/HSSR4M5TmmDTjD+s8iECK9w7Cnq3dFtrQBrTQelw+RZn1i8B AmL2V5PAsdIKqjKkvd5BlyPCP3jK6S5IQrOz24LHZH0HNcZbdvBI/F/7DTO32UhFTL tcSeaL8VGuLA6c46nkE1wOlQkfdjKSLYMEEqEZ2I= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Eliminate unused parameter warning. X-Act-Checkin: gcc X-Git-Author: xuli X-Git-Refname: refs/vendors/riscv/heads/gcc-13-with-riscv-opts X-Git-Oldrev: c027441e001a225a3bf614c39d6187ba95be56bb X-Git-Newrev: 1346ff487359b63f22885258031915897191beca Message-Id: <20231121040636.CA78F3858C30@sourceware.org> Date: Tue, 21 Nov 2023 04:06:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:1346ff487359b63f22885258031915897191beca commit 1346ff487359b63f22885258031915897191beca Author: xuli Date: Wed Nov 8 08:46:02 2023 +0000 RISC-V: Eliminate unused parameter warning. The parameter orig_fndecl is not used, use anonymous parameters instead. ../.././gcc/gcc/config/riscv/riscv-c.cc: In function ‘bool riscv_check_builtin_call(location_t, vec, tree, tree, unsigned int, tree_node**)’: ../.././gcc/gcc/config/riscv/riscv-c.cc:207:11: warning: unused parameter ‘orig_fndecl’ [-Wunused-parameter] tree orig_fndecl, unsigned int nargs, tree *args) ^~~~~~~~~~~ gcc/ChangeLog: * config/riscv/riscv-c.cc (riscv_check_builtin_call): Eliminate warning. (cherry picked from commit 80f466aa1cce2759112c8b0121964d1bbb158f25) Diff: --- gcc/config/riscv/riscv-c.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc index bedf7217390..b7f9ba204f7 100644 --- a/gcc/config/riscv/riscv-c.cc +++ b/gcc/config/riscv/riscv-c.cc @@ -204,7 +204,7 @@ riscv_pragma_intrinsic (cpp_reader *) /* Implement TARGET_CHECK_BUILTIN_CALL. */ static bool riscv_check_builtin_call (location_t loc, vec arg_loc, tree fndecl, - tree orig_fndecl, unsigned int nargs, tree *args) + tree, unsigned int nargs, tree *args) { unsigned int code = DECL_MD_FUNCTION_CODE (fndecl); unsigned int subcode = code >> RISCV_BUILTIN_SHIFT;