]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit80f466aa1cce2759112c8b0121964d1bbb158f25
tree7c5f40fc68c54e97e59dff8c287a92d0b45c8d6c
parentca281a7b97163273de9d73da556fb3f6dcc3b61b
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.
gcc/config/riscv/riscv-c.cc