On Wed, 2005-05-25 at 12:27 +1000, Benno wrote:
> On Wed May 25, 2005 at 12:21:35 +1000, Peter Miller wrote:
> >On Wed, 2005-05-25 at 09:20 +1000, Benno wrote:
> >> This will warn about the name of an argument in a function
> >> *declaration*, shadowing a global.
> >
> >I try very hard to make the parameter names in the function prototype
> >match the parameter names in the function definition.  This makes the
> >Doxygen documentation more useful, and there's less to remember.
> 
> Agree.
> 
> >Plus one more rule: always include the .h with the interface defintion
> >in the .c implementing that interface.  This lets the compiler detect
> >incorrect proptotype vs defintion (i.e. horrendously hard to find bugs).
> 
> Agree.

-Wmissing-prototypes IIRC :)

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

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