]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
MIPS: Add ATTRIBUTE_UNUSED to mips_start_function_definition
authorYunQiang Su <syq@gcc.gnu.org>
Thu, 11 Jan 2024 09:53:42 +0000 (17:53 +0800)
committerYunQiang Su <syq@gcc.gnu.org>
Thu, 11 Jan 2024 09:55:14 +0000 (17:55 +0800)
Fix build warning:
  mips.cc: warning: unused parameter 'decl'.

gcc
* config/mips/mips.cc (mips_start_function_definition):
Add ATTRIBUTE_UNUSED.

gcc/config/mips/mips.cc

index 60b336e43d0fc09c272b5171a440b2c5968e560b..e752019b5e27fbd101e89bf122e66ea4da17a95d 100644 (file)
@@ -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");