From owner-cvs-all Sat Jun 22 3:37:27 2002 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id DEC5937B403; Sat, 22 Jun 2002 03:37:23 -0700 (PDT) Date: Sat, 22 Jun 2002 03:37:23 -0700 From: Juli Mallett To: Bruce Evans Cc: Doug Barton , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/inetd inetd.c Message-ID: <20020622033723.A12949@FreeBSD.ORG> References: <20020621195650.A29348@FreeBSD.ORG> <20020622202821.P7645-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020622202821.P7645-100000@gamplex.bde.org>; from bde@zeta.org.au on Sat, Jun 22, 2002 at 08:38:38PM +1000 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , X-Affiliated-Projects: FreeBSD, xMach, ircd-hybrid-7 X-Towel: Yes Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Bruce Evans escriuréres > > I seem to recall using at least one compiler that knew __typeof__ but not > > typeof, not to mention that GCC seems to be ignorant that typeof() is a > > builtin, but not __typeof__(), and therefore will emit bogus warnings. > > I think gcc emits non-bogus warnings about typeof() because you asked it to > by setting WARNS to >= 5 to make gcc more standard. typeof() is just a > function call in Standard C, so typeof(a) cannot possibly be part of a Right, I realised this, but did't explain it right. It has to treat it like any function. > declaration like it needs to be in the SWAP() macro. Portable code would > use __typeof__() inside a __GNUC__ ifdef for the gcc case and something > else for the non-gcc case, or just something else in all cases. Easy enough to do the latter. Thanks. -- Juli Mallett | FreeBSD: The Power To Serve Will break world for fulltime employment. | finger jmallett@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message