]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/17881 (Incomplete type warning is issued even for prototypes)
authorJoseph Myers <jsm@polyomino.org.uk>
Sun, 10 Oct 2004 19:20:35 +0000 (20:20 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 10 Oct 2004 19:20:35 +0000 (20:20 +0100)
commitbba5733fee39b6ce6e73e8637fd2cde9c16ea399
treed764821ea6513c2ad0e0c105e575f0906f409bf6
parenta780ad2f430e6aeb6e2c7b9dca9093ba5e2ff6e9
re PR c/17881 (Incomplete type warning is issued even for prototypes)

PR c/17881
* c-decl.c (grokparms): Don't warn for parameters of incomplete
type in declarations that are not definitions except for the case
of parameters of void type.

testsuite:
* parm-incomplete-1.c: New test.

From-SVN: r88850
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/parm-incomplete-1.c [new file with mode: 0644]