diff options
author | gfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-01 14:07:52 +0000 |
---|---|---|
committer | gfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-01 14:07:52 +0000 |
commit | 5568b3c604604134d7a21cc26a808c55d91d1767 (patch) | |
tree | 7cade9583f2b0a40befb45b5148d6e7c388be529 /gcc/c-decl.c | |
parent | c36c585e1bdcec69ac4f9d3397e3a6de81bb2680 (diff) | |
download | gcc-5568b3c604604134d7a21cc26a808c55d91d1767.tar.gz |
2011-04-01 Gary Funck <gary@intrepid.com>
* c-decl.c (grokdeclarator): Fix formatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 1af3d23b677..d54f37853b2 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5450,7 +5450,7 @@ grokdeclarator (const struct c_declarator *declarator, } } - /* 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_declarator *declarator, 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 |