[PATCH] -Wredundant-decls, do not warn for static forward decl

Joseph S. Myers joseph@codesourcery.com
Wed Aug 31 10:15:00 GMT 2005


On Wed, 31 Aug 2005, Craig Rodrigues wrote:

> I duplicated the logic for function decls followed by a function definition
> in the same if statement.  I also have an attached testcase.

This test really passes in the form given?  (I'd have expected failures 
because of the "previous declaration" and "previous definition" warnings 
it doesn't check for.)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc-patches mailing list