diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 494cdac4a76..8103a5dae97 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -2095,7 +2095,7 @@ ivar_decls: | ivar_decls ';' { if (pedantic) - warning ("extra semicolon in struct or union specified"); + pedwarn ("extra semicolon in struct or union specified"); } ;