From owner-freebsd-current@FreeBSD.ORG Sat Jun 14 16:40:46 2003 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 D516337B401 for ; Sat, 14 Jun 2003 16:40:46 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EE4B43FB1 for ; Sat, 14 Jun 2003 16:40:45 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id JAA14860; Sun, 15 Jun 2003 09:40:33 +1000 Date: Sun, 15 Jun 2003 09:40:32 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Pete Carah In-Reply-To: <200306141904.h5EJ471f055956@ns.altadena.net> Message-ID: <20030615092553.E22643@gamplex.bde.org> References: <200306141904.h5EJ471f055956@ns.altadena.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: pedantic again 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: Sat, 14 Jun 2003 23:40:47 -0000 On Sat, 14 Jun 2003, Pete Carah wrote: > Someone added "-std=gnu89 -pedantic" to libcrypto's make; given that > stdlib.h and several other places contain "long long", this results in > several thousands of warnings about C89. We need to either go modern > or not but not try both at once :-) -std=c89 works fine for slightly wrong reasons, but not gnu89, mainly because of spelling differences. std=c89 prevents definition of FreeBSD's __LONG_LONG_SUPPORTED in , while std=gnu99 gives a definition of _LONGLONG by the compiler itself. stdlib.h etc. only understands the former. > Also usr.bin/window generates LOTS of warnings; I didn't spot just what > kind. Someone added -std=mumble which causes lots of warnings in nonstandard code. Bruce