Date: Fri, 16 Aug 2002 16:48:13 +1000 From: Tim Robbins <tjr@FreeBSD.ORG> To: Alfred Perlstein <bright@mu.org> Cc: current@FreeBSD.ORG Subject: Re: world broken Message-ID: <20020816164813.A62266@dilbert.robbins.dropbear.id.au> In-Reply-To: <20020815221859.GH75574@elvis.mu.org>; from bright@mu.org on Thu, Aug 15, 2002 at 03:18:59PM -0700 References: <20020815221859.GH75574@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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=<something>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020816164813.A62266>