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]

[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);


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