re PR c/15749 (--pedantic-errors behaves differently from --pedantic with C-compiler...
authorJoseph Myers <jsm@polyomino.org.uk>
Mon, 31 May 2004 22:06:33 +0000 (23:06 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 31 May 2004 22:06:33 +0000 (23:06 +0100)
commitec3e68358fa934bd54bf6c93af37360b30dfff70
tree10179230ae3065bb71c868f953b6d2060666594b
parenta4a90b847aac34b2cbede88ffeef45343214d066
re PR c/15749 (--pedantic-errors behaves differently from --pedantic with C-compiler on Linux)

PR c/15749
* c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
misuses of structures with flexible array members if
in_system_header.

testsuite:
* gcc.dg/pr15749-1.c, gcc.dg/pr15749-1.h: New test.

From-SVN: r82506
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr15749-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr15749-1.h [new file with mode: 0644]