From: YunQiang Su Date: Thu, 11 Jan 2024 09:53:42 +0000 (+0800) Subject: MIPS: Add ATTRIBUTE_UNUSED to mips_start_function_definition X-Git-Tag: basepoints/gcc-15~3008 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b531bc364d67b56db31d383dab117571875833ca;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 60b336e43d0f..e752019b5e27 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");