This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Trivial warning fix for mips.c


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.

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)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]