This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Trivial warning fix for mips.c
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 10 Oct 2010 10:19:07 +0100
- Subject: [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)
{