c-decl.c (grokdeclarator): Move warning for qualified void return types with -pedanti...
authorJoseph Myers <jsm28@cam.ac.uk>
Wed, 25 Oct 2000 17:45:44 +0000 (18:45 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 25 Oct 2000 17:45:44 +0000 (18:45 +0100)
commite0c9fbb7638b1d558eab84e981b2347fbf97c59a
treee053df2a3f9528985c3178bcc90e1d30062e9d4e
parentfb204271dd889c63b0427b4ab48dd04b3ded329c
c-decl.c (grokdeclarator): Move warning for qualified void return types with -pedantic to when...

* c-decl.c (grokdeclarator): Move warning for qualified void
return types with -pedantic to when the function type is
constructed.  At -W, warn in general for qualified function return
types, except for volatile void.
* invoke.texi: Document this new warning at -W.

testsuite:
* gcc.dg/qual-return-1.c, gcc.dg/qual-return-2.c: New tests.

From-SVN: r37056
gcc/ChangeLog
gcc/c-decl.c
gcc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/qual-return-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/qual-return-2.c [new file with mode: 0644]