From owner-freebsd-current Thu Aug 15 23:48:23 2002 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 554FD37B400 for ; Thu, 15 Aug 2002 23:48:22 -0700 (PDT) Received: from dilbert.robbins.dropbear.id.au (024.b.006.mel.iprimus.net.au [210.50.45.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDB3F43E70 for ; Thu, 15 Aug 2002 23:48:19 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (yejbj2j23q8zvdap@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3) with ESMTP id g7G6mGEa065395; Fri, 16 Aug 2002 16:48:16 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3/Submit) id g7G6mEEv065394; Fri, 16 Aug 2002 16:48:14 +1000 (EST) Date: Fri, 16 Aug 2002 16:48:13 +1000 From: Tim Robbins To: Alfred Perlstein Cc: current@FreeBSD.ORG Subject: Re: world broken Message-ID: <20020816164813.A62266@dilbert.robbins.dropbear.id.au> References: <20020815221859.GH75574@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020815221859.GH75574@elvis.mu.org>; from bright@mu.org on Thu, Aug 15, 2002 at 03:18:59PM -0700 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 On Thu, Aug 15, 2002 at 03:18:59PM -0700, Alfred Perlstein wrote: > /usr/obj/vol/share/src/i386/usr/include/stdbool.h:41: warning: useless keyword o > r type name in empty declaration > /usr/obj/vol/share/src/i386/usr/include/stdbool.h:41: warning: empty declaration > I get those a lot now... please fix. This happens because GCC 3 doesn't define __STDC_VERSION__ unless you specify -std=, whereas 2.95 defines it to 199409L if no -std option is given. I'm not quite sure how to check for this. Perhaps this would work: #if __STDC_VERSION__ < 199901L && __GNUC__ < 3 typedef int _Bool; #endif GCC 3 appears to declare _Bool regardless of any -std option. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message