From owner-freebsd-current Sat Feb 1 15:51:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E024037B401 for ; Sat, 1 Feb 2003 15:51:49 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0833143E4A for ; Sat, 1 Feb 2003 15:51:49 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h11NpjLf036556; Sat, 1 Feb 2003 23:51:45 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h11NpjmG036555; Sat, 1 Feb 2003 23:51:45 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h11NjqaX028714; Sun, 2 Feb 2003 01:45:52 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302012345.h11NjqaX028714@grimreaper.grondar.org> To: Matthew Dillon Cc: current@FreeBSD.ORG Subject: Re: Style fixups for proc.h In-Reply-To: Your message of "Sat, 01 Feb 2003 15:38:38 PST." <200302012338.h11NccjO017853@apollo.backplane.com> Date: Sat, 01 Feb 2003 23:45:52 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > :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