Date: Sat, 01 Feb 2003 23:45:52 +0000 From: Mark Murray <mark@grondar.org> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: current@FreeBSD.ORG Subject: Re: Style fixups for proc.h Message-ID: <200302012345.h11NjqaX028714@grimreaper.grondar.org> In-Reply-To: Your message of "Sat, 01 Feb 2003 15:38:38 PST." <200302012338.h11NccjO017853@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> :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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302012345.h11NjqaX028714>