On Mon, 2004-10-18 at 03:50, Tom Lane wrote:
> > -Wmissing-declarations ("Warn if a global function is defined without a 
> > previous declaration.")
> 
> Hm?  We have always used that one.

We've always used -Wmissing-prototypes. The documentation states that
-Wmissing-prototypes instructs GCC to:

        Warn if a global function is defined without a previous
        prototype declaration. This warning is issued even if the
        definition itself provides a prototype. The aim is to detect
        global functions that fail to be declared in header files.
        
Whereas -Wmissing-declarations does:

        Warn if a global function is defined without a previous
        declaration. Do so even if the definition itself provides a
        prototype. Use this option to detect global functions that are
        not declared in header files.

Which doesn't make the difference in behavior between the two options
clear to me. Can anyone clarify this?

BTW, are these changes appropriate for 8.0?

-Neil



---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply via email to