From owner-svn-src-projects@FreeBSD.ORG Thu Jun 11 01:39:48 2009 Return-Path: Delivered-To: svn-src-projects@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B7F4106564A; Thu, 11 Jun 2009 01:39:48 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail08.syd.optusnet.com.au (mail08.syd.optusnet.com.au [211.29.132.189]) by mx1.freebsd.org (Postfix) with ESMTP id 7916D8FC12; Thu, 11 Jun 2009 01:39:42 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c122-106-159-184.carlnfd1.nsw.optusnet.com.au (c122-106-159-184.carlnfd1.nsw.optusnet.com.au [122.106.159.184]) by mail08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n5B1dAqu012983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Jun 2009 11:39:13 +1000 Date: Thu, 11 Jun 2009 11:39:10 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Ed Schouten In-Reply-To: <20090610104854.GN48776@hoeg.nl> Message-ID: <20090611113543.E21054@delplex.bde.org> References: <200906082105.n58L5TsI043469@svn.freebsd.org> <20090610104029.GA18940@freebsd.org> <20090610104854.GN48776@hoeg.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-projects@FreeBSD.org, Roman Divacky , 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/... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 01:39:48 -0000 On Wed, 10 Jun 2009, Ed Schouten wrote: > * Roman Divacky 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