This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed SH] Fix unused warning
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Aug 2009 07:27:07 +0900 (JST)
- Subject: [patch committed SH] Fix unused warning
Hi,
I've applied the obvious patch below which was mistakenly dropped
from r150368 change. Tested on sh4-unknown-linux-gnu.
Regards,
kaz
--
2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
--- ORIG/trunk/gcc/config/sh/sh.c 2009-08-04 08:16:50.000000000 +0900
+++ trunk/gcc/config/sh/sh.c 2009-08-12 15:50:57.000000000 +0900
@@ -7901,7 +7901,8 @@ sh_dwarf_register_span (TX reg)
static enum machine_mode
sh_promote_function_mode (const_tree type, enum machine_mode mode,
- int *punsignedp, const_tree funtype, int for_return)
+ int *punsignedp, const_tree funtype,
+ int for_return ATTRIBUTE_UNUSED)
{
if (sh_promote_prototypes (funtype))
return promote_mode (type, mode, punsignedp);