From owner-freebsd-current@FreeBSD.ORG Tue Jan 18 13:29:32 2005 Return-Path: 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 EC90E16A4CE for ; Tue, 18 Jan 2005 13:29:32 +0000 (GMT) Received: from av5-2-sn1.fre.skanova.net (av5-2-sn1.fre.skanova.net [81.228.11.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7E6343D54 for ; Tue, 18 Jan 2005 13:29:31 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av5-2-sn1.fre.skanova.net (Postfix, from userid 502) id 3351237F2A; Tue, 18 Jan 2005 14:29:31 +0100 (CET) Received: from smtp2-2-sn2.hy.skanova.net (smtp2-2-sn2.hy.skanova.net [81.228.8.178]) by av5-2-sn1.fre.skanova.net (Postfix) with ESMTP id 238CD37EA1 for ; Tue, 18 Jan 2005 14:29:31 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp2-2-sn2.hy.skanova.net (Postfix) with SMTP id E87AF37E47 for ; Tue, 18 Jan 2005 14:29:30 +0100 (CET) Received: (qmail 97893 invoked by uid 1001); 18 Jan 2005 13:29:30 -0000 Date: Tue, 18 Jan 2005 14:29:30 +0100 From: Erik Trulsson To: Alexey Dokuchaev Message-ID: <20050118132930.GA97874@falcon.midgard.homeip.net> Mail-Followup-To: Alexey Dokuchaev , freebsd-current@freebsd.org References: <20050116144113.GB66854@gothmog.gr> <20050118083457.GA57902@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050118083457.GA57902@regency.nsu.ru> User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: gratuitous gcc warnings: unused function arguments? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 13:29:33 -0000 On Tue, Jan 18, 2005 at 02:34:57PM +0600, Alexey Dokuchaev wrote: > On Sun, Jan 16, 2005 at 04:41:13PM +0200, Giorgos Keramidas wrote: > > > > This allows the main() function to keep being compliant with the ANSI > > standard that specifies only two valid prototypes for main(): > > > > int main(void); > > int main(int argc, char *argv[]); > > Hmm, I might sound wrong, but I also recall seeing ``int main(int argc, > char *argv[], char *envp[]);'' as valid main() prototype as well. That is not correct according to the ANSI/ISO C standard. It is a very common extension on Unix systems, but it is not standard C. -- Erik Trulsson ertr1013@student.uu.se