aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index e1146b0..1affab4 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -407,11 +407,7 @@ save_obstack_position:
datadef:
setspecs notype_initdecls ';'
- { if (pedantic)
- error ("ISO C forbids data definition with no type or storage class");
- else
- warning ("data definition has no type or storage class");
-
+ { pedwarn ("data definition has no type or storage class");
POP_DECLSPEC_STACK; }
| declspecs_nots setspecs notype_initdecls ';'
{ POP_DECLSPEC_STACK; }