From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH] cld: check parameters for HAIL_LOG Date: Mon, 04 Jan 2010 05:18:13 -0500 Message-ID: <4B41C065.6040708@garzik.org> References: <1262565919-3365-1-git-send-email-cmccabe@alumni.cmu.edu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=CHYY7j7iGVsN08UeIE8QcpnRE/NyFSPIoH3vgoboKTs=; b=nLpmNqY+uYlHFQUe8IAZ17p3NErt/cCrqfXDIr1QzNwChNFSSb6SZN5uiwfylPFhe9 ARf/g0wpOxTzNZAVMRxUKlFalOUo602QsnDBPtrwVqr8WsUurWTXDjJ5FNl8X1d7VNc/ Rq0nutx2FSv9/5BVmm/cKdVZU1IcCxZg50kkQ= In-Reply-To: <1262565919-3365-1-git-send-email-cmccabe@alumni.cmu.edu> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Colin McCabe Cc: Project Hail List , Pete Zaitcev On 01/03/2010 07:45 PM, Colin McCabe wrote: > Another attempt at escaping the overly-aggressive spam filters... > > GCC has a nifty ability to typecheck varargs functions that follow the printf > conventions. This change uses that in HAIL_LOG. If you build with -Wall, gcc > can now give warnings about HAIL_LOG invocations where there are too many or > too few arguments, or arguments of the wrong types. > > For non-GCC compilers, don't do anything (yet). > > Signed-off-by: Colin McCabe > --- > include/hail_log.h | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) applied