Date: Fri, 10 May 2002 19:27:01 -0700 From: Alfred Perlstein <alfred@FreeBSD.org> To: David O'Brien <obrien@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/test test.c Message-ID: <20020511022701.GD90188@elvis.mu.org> In-Reply-To: <20020510190349.A27755@dragon.nuxi.com> References: <200205110054.g4B0sXZ40167@freefall.freebsd.org> <20020511005943.GB90188@elvis.mu.org> <20020510190349.A27755@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* David O'Brien <obrien@FreeBSD.org> [020510 19:03] wrote: > On Fri, May 10, 2002 at 05:59:43PM -0700, Alfred Perlstein wrote: > > * Alfred Perlstein <alfred@FreeBSD.org> [020510 17:54] wrote: > > > alfred 2002/05/10 17:54:33 PDT > > > > > > Modified files: > > > bin/test test.c > > > Log: > > > include cdefs.h for __printf0like to silence warning. > > > > This doesn't work, my apolgies, I should have a real fix RSN. > > How are you planning on "fixing" this? I assume a real fix and not some > 1/2assed something just to quiet the warning. I initially thought it was just because a header was ommitted, after a bit of research it looks like gcc 3.1 doesn't support 'printf0' is there a workaround? I was planning on just doing this for now: Index: cdefs.h =================================================================== RCS file: /home/ncvs/src/sys/sys/cdefs.h,v retrieving revision 1.53 diff -u -r1.53 cdefs.h --- cdefs.h 6 Apr 2002 21:08:59 -0000 1.53 +++ cdefs.h 11 May 2002 01:32:48 -0000 @@ -169,7 +169,7 @@ #endif /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ -#if __FreeBSD_cc_version >= 300001 +#if 0 && __FreeBSD_cc_version >= 300001 #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) #else -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020511022701.GD90188>