]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Eliminate unused parameter warning.
authorxuli <xuli1@eswincomputing.com>
Wed, 8 Nov 2023 08:46:02 +0000 (08:46 +0000)
committerxuli <xuli1@eswincomputing.com>
Wed, 8 Nov 2023 09:05:00 +0000 (09:05 +0000)
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.

gcc/config/riscv/riscv-c.cc

index bedf7217390d59e793ed19ce14562b6d4c6e6ed9..b7f9ba204f7f071b1de095a2fb169f8bf02f4baf 100644 (file)
@@ -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;