> :When the prototype parameter name matches a local variable, the C compiler
> :(and lint) whine about clashes between names in local/global namespace.
> 
>     I've never in my life heard of this behavior before, what compiler
>     arguments reproduce it?

WARNS=5.

> :2 ways to fix this are to "protect" the prototype argument names with the
> :"_", or to remove the argument name altogether.
> 
>     If it is a problem, why not simply use the same variable names that are
>     declared in the procedure proper?  The underscore looks ugly and out of
>     place and doesn't make that much sense to me.

Because this doesn't always help, or if it did, the diffs are often
much bigger and to many more files.

M
--
Mark Murray
iumop ap!sdn w,I idlaH

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to