diff options
author | YunQiang Su <syq@gcc.gnu.org> | 2024-01-11 17:53:42 +0800 |
---|---|---|
committer | YunQiang Su <syq@gcc.gnu.org> | 2024-01-11 17:55:14 +0800 |
commit | b531bc364d67b56db31d383dab117571875833ca (patch) | |
tree | 1fc3b0262eff0e6abfa6a1a8df4822a72267e511 | |
parent | 96fb3908d9b8e30f8d8355fbb133d25625a0fee9 (diff) | |
download | gcc-b531bc364d67b56db31d383dab117571875833ca.zip gcc-b531bc364d67b56db31d383dab117571875833ca.tar.gz gcc-b531bc364d67b56db31d383dab117571875833ca.tar.bz2 |
MIPS: Add ATTRIBUTE_UNUSED to mips_start_function_definition
Fix build warning:
mips.cc: warning: unused parameter 'decl'.
gcc
* config/mips/mips.cc (mips_start_function_definition):
Add ATTRIBUTE_UNUSED.
-rw-r--r-- | gcc/config/mips/mips.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 60b336e..e752019 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -7330,7 +7330,8 @@ mips_start_unique_function (const char *name) function contains MIPS16 code. */ static void -mips_start_function_definition (const char *name, bool mips16_p, tree decl) +mips_start_function_definition (const char *name, bool mips16_p, + tree decl ATTRIBUTE_UNUSED) { if (mips16_p) fprintf (asm_out_file, "\t.set\tmips16\n"); |