On Wed, 2005-05-25 at 19:30 +1000, Matthew Hannigan wrote:

> It's because missing a prototype is always an error for C++.

Ah, no.  This is not what the option does.

You use it to ensure that every function defined (in .cc file) also has
a prototype declaration (in the .h file).  The option says "give me a
warning if there is no prototype declaration in scope when I get around
to defining the function."  I.e. you find this sort of error at compiler
time, not at link time (with bizarro symbol names humans don't grok).

It doesn't say "bitch if the luser uses a K&R function declaration",
that's a different -Wthingie, and quite obviously C specific.

-- 
Regards
Peter Miller <[EMAIL PROTECTED]>
/\/\*        http://www.canb.auug.org.au/~millerp/

PGP public key ID: 1024D/D0EDB64D
fingerprint = AD0A C5DF C426 4F03 5D53  2BDB 18D8 A4E2 D0ED B64D
See http://www.keyserver.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to