aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/riscv/riscv-c.cc
diff options
context:
space:
mode:
authorxuli <xuli1@eswincomputing.com>2023-11-08 08:46:02 +0000
committerxuli <xuli1@eswincomputing.com>2023-11-08 09:05:00 +0000
commit80f466aa1cce2759112c8b0121964d1bbb158f25 (patch)
tree7c5f40fc68c54e97e59dff8c287a92d0b45c8d6c /gcc/config/riscv/riscv-c.cc
parentca281a7b97163273de9d73da556fb3f6dcc3b61b (diff)
downloadgcc-80f466aa1cce2759112c8b0121964d1bbb158f25.zip
gcc-80f466aa1cce2759112c8b0121964d1bbb158f25.tar.gz
gcc-80f466aa1cce2759112c8b0121964d1bbb158f25.tar.bz2
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<unsigned int>, 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.
Diffstat (limited to 'gcc/config/riscv/riscv-c.cc')
-rw-r--r--gcc/config/riscv/riscv-c.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc
index bedf721..b7f9ba2 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<location_t> 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;