Patchwork c-decl.c(grokdeclarator) trivial formating fixes

login
register
mail settings
Submitter Gary Funck
Date April 1, 2011, 5:36 a.m.
Message ID <20110401053653.GD7573@intrepid.com>
Download mbox | patch
Permalink /patch/89204/
State New
Headers show

Comments

Gary Funck - April 1, 2011, 5:36 a.m.
See attached: two places in grokdeclarartor, where extra spaces appear.
I can make this patch, or perhaps someone else can just fold it into
something they're doing?  (Although I had separately made these changes
in the GUPC branch, I haven't tested them.  Hopefully, they're safe
by inspection.)

- Gary
Joseph S. Myers - April 1, 2011, 11:52 a.m.
This patch is OK.

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 171815)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@ 
+2011-04-01  Gary Funck <gary@intrepid.com>
+
+	* c-decl.c (grokdeclarator): Fix formatting.
+
 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
 
 	* opts.h (cl_option): Add comments to fields.  Add bit-fields for
Index: c-decl.c
===================================================================
--- c-decl.c	(revision 171815)
+++ c-decl.c	(working copy)
@@ -5450,7 +5450,7 @@  grokdeclarator (const struct c_declarato
 		  }
 	      }
 
-	     /* Complain about arrays of incomplete types.  */
+	    /* Complain about arrays of incomplete types.  */
 	    if (!COMPLETE_TYPE_P (type))
 	      {
 		error_at (loc, "array type has incomplete element type");
@@ -5936,7 +5936,7 @@  grokdeclarator (const struct c_declarato
 	if (storage_class == csc_register || threadp)
 	  {
 	    error_at (loc, "invalid storage class for function %qE", name);
-	   }
+	  }
 	else if (current_scope != file_scope)
 	  {
 	    /* Function declaration not at file scope.  Storage