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 installed for warning nits.


This patch zaps a few warning nits that surfaced recently.

 > cfgcleanup.c:556: warning: unused parameter `mode'
 > builtins.c:2248: warning: unused parameter `exp'
 > regrename.c:1222: warning: unused parameter `regno'
 > gcc.c:2742: warning: assignment discards qualifiers from pointer target type

Tested via recompiling the respective .o files on sparc-sun-solaris2.7
and installed as obvious.

		--Kaveh


2001-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* builtins.c (expand_builtin_memcmp): Mark parameter with
	ATTRIBUTE_UNUSED.
	* cfgcleanup.c (insns_match_p): Likewise.
	* regrename.c (mode_change_ok): Likewise.
	* gcc.c (execute): Const-ify.

diff -rup orig/egcc-CVS20011214/gcc/builtins.c egcc-CVS20011214/gcc/builtins.c
--- orig/egcc-CVS20011214/gcc/builtins.c	Fri Dec 14 16:30:17 2001
+++ egcc-CVS20011214/gcc/builtins.c	Fri Dec 14 23:00:56 2001
@@ -2245,7 +2245,7 @@ expand_builtin_bzero (exp)
 
 static rtx
 expand_builtin_memcmp (exp, arglist, target, mode)
-     tree exp;
+     tree exp ATTRIBUTE_UNUSED;
      tree arglist;
      rtx target;
      enum machine_mode mode;
diff -rup orig/egcc-CVS20011214/gcc/cfgcleanup.c egcc-CVS20011214/gcc/cfgcleanup.c
--- orig/egcc-CVS20011214/gcc/cfgcleanup.c	Fri Dec 14 22:20:09 2001
+++ egcc-CVS20011214/gcc/cfgcleanup.c	Fri Dec 14 22:59:11 2001
@@ -553,7 +553,7 @@ merge_blocks (e, b, c, mode)
 
 static bool
 insns_match_p (mode, i1, i2)
-	int mode;
+	int mode ATTRIBUTE_UNUSED;
 	rtx i1, i2;
 {
   rtx p1, p2;
diff -rup orig/egcc-CVS20011214/gcc/gcc.c egcc-CVS20011214/gcc/gcc.c
--- orig/egcc-CVS20011214/gcc/gcc.c	Fri Dec 14 22:20:10 2001
+++ egcc-CVS20011214/gcc/gcc.c	Fri Dec 14 22:57:36 2001
@@ -2737,7 +2737,7 @@ execute ()
      	    {
 	      for (j = commands[i].argv; *j; j++)
 		{
-		  char *p;
+		  const char *p;
 		  fprintf (stderr, " \"");
 		  for (p = *j; *p; ++p)
 		    {
diff -rup orig/egcc-CVS20011214/gcc/regrename.c egcc-CVS20011214/gcc/regrename.c
--- orig/egcc-CVS20011214/gcc/regrename.c	Fri Dec 14 22:20:10 2001
+++ egcc-CVS20011214/gcc/regrename.c	Fri Dec 14 23:01:53 2001
@@ -1219,7 +1219,7 @@ copy_value (dest, src, vd)
 static bool
 mode_change_ok (orig_mode, new_mode, regno)
      enum machine_mode orig_mode, new_mode;
-     unsigned int regno;
+     unsigned int regno ATTRIBUTE_UNUSED;
 {
   if (GET_MODE_SIZE (orig_mode) < GET_MODE_SIZE (new_mode))
     return false;


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