From: Jeff Law Date: Mon, 25 Jan 1993 18:53:25 +0000 (-0700) Subject: c-decl.c (finish_struct): Disable "structure/union defined inside parms" if compiling... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3c2c11198c0178ab117f57de9dbfa02b719964b;p=gcc.git c-decl.c (finish_struct): Disable "structure/union defined inside parms" if compiling with -traditional. * c-decl.c (finish_struct): Disable "structure/union defined inside parms" if compiling with -traditional. From-SVN: r3327 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index cc5e011b15c..f9bf9f4ed0c 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4852,7 +4852,7 @@ finish_struct (t, fieldlist) if (pedantic) pedwarn ((TREE_CODE (t) == UNION_TYPE ? "union defined inside parms" : "structure defined inside parms")); - else + else if (! flag_traditional) warning ((TREE_CODE (t) == UNION_TYPE ? "union defined inside parms" : "structure defined inside parms")); }