Date: Thu, 11 Jun 2009 11:39:10 +1000 (EST) From: Bruce Evans <brde@optusnet.com.au> To: Ed Schouten <ed@80386.nl> Cc: svn-src-projects@FreeBSD.org, Roman Divacky <rdivacky@FreeBSD.org>, src-committers@FreeBSD.org Subject: Re: svn commit: r193755 - in projects/clangbsd: . bin/df bin/sh cddl/contrib/opensolaris/lib/libzfs/common contrib/llvm contrib/llvm/autoconf contrib/llvm/cmake contrib/llvm/cmake/modules contrib/llvm/... Message-ID: <20090611113543.E21054@delplex.bde.org> In-Reply-To: <20090610104854.GN48776@hoeg.nl> References: <200906082105.n58L5TsI043469@svn.freebsd.org> <20090610104029.GA18940@freebsd.org> <20090610104854.GN48776@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Jun 2009, Ed Schouten wrote: > * Roman Divacky <rdivacky@FreeBSD.org> wrote: >> you know that it changes the semantic of the check, right? we should >> implement the checks instead... > > No, it doesn't. printf0 is just printf, but it allows fmt to be NULL. No it isn't. printf is just printf0, except it doesn't allow fmt to be NULL. FreeBSD extended printf to printf0, to support functions like err() where a NULL format is valid. > Clang always allows this, even with printf. If so, this is a bug in Clang. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090611113543.E21054>