Patchwork [committed] Trivial warning fix for mips.c

login
register
mail settings
Submitter Richard Sandiford
Date Oct. 10, 2010, 9:19 a.m.
Message ID <87hbgummlw.fsf@firetop.home>
Download mbox | patch
Permalink /patch/67344/
State New
Headers show

Comments

Richard Sandiford - Oct. 10, 2010, 9:19 a.m.
A recent patch introduced an "unused parameter" warning in mips.c
Fixed with the trivial patch below.  Tested on mips64octeon-linux-gnu
and applied.

Richard


gcc/
	* config/mips/mips.c (mips_handle_option): Make "value" with
	ATTRIBUTE_UNUSED.

Patch

Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c	2010-10-10 10:14:29.000000000 +0100
+++ gcc/config/mips/mips.c	2010-10-10 10:14:31.000000000 +0100
@@ -15441,7 +15441,7 @@  mips_set_tune (const struct mips_cpu_inf
 /* Implement TARGET_HANDLE_OPTION.  */
 
 static bool
-mips_handle_option (size_t code, const char *arg, int value)
+mips_handle_option (size_t code, const char *arg, int value ATTRIBUTE_UNUSED)
 {
   switch (code)
     {