From 80f466aa1cce2759112c8b0121964d1bbb158f25 Mon Sep 17 00:00:00 2001 From: xuli Date: Wed, 8 Nov 2023 08:46:02 +0000 Subject: [PATCH] RISC-V: Eliminate unused parameter warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- 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 bedf7217390d..b7f9ba204f7f 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; -- 2.47.2