Return-Path: X-Original-To: apmail-incubator-lucy-dev-archive@www.apache.org Delivered-To: apmail-incubator-lucy-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B950755C for ; Thu, 3 Nov 2011 03:52:49 +0000 (UTC) Received: (qmail 76680 invoked by uid 500); 3 Nov 2011 03:52:49 -0000 Delivered-To: apmail-incubator-lucy-dev-archive@incubator.apache.org Received: (qmail 76592 invoked by uid 500); 3 Nov 2011 03:52:47 -0000 Mailing-List: contact lucy-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@incubator.apache.org Delivered-To: mailing list lucy-dev@incubator.apache.org Received: (qmail 76584 invoked by uid 99); 3 Nov 2011 03:52:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 03:52:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.41] (HELO mail-pz0-f41.google.com) (209.85.210.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 03:52:39 +0000 Received: by pzk36 with SMTP id 36so2034456pzk.0 for ; Wed, 02 Nov 2011 20:52:18 -0700 (PDT) Received: by 10.68.60.97 with SMTP id g1mr8804274pbr.108.1320292338074; Wed, 02 Nov 2011 20:52:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.114.12 with HTTP; Wed, 2 Nov 2011 20:51:46 -0700 (PDT) In-Reply-To: <20111103025242.GB26068@rectangular.com> References: <4E9F98AC.7050602@peknet.com> <20111103025242.GB26068@rectangular.com> From: Nathan Kurz Date: Wed, 2 Nov 2011 20:51:46 -0700 Message-ID: To: lucy-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-dev] [VOTE] Apache Lucy (incubating) 0.2.2 RC 1 On Wed, Nov 2, 2011 at 7:52 PM, Marvin Humphrey wr= ote: > Here's the line in question: > > =C2=A0 =C2=A0fprintf(stderr, "Can't malloc %" U64P " bytes.\n", (uint64_t= )count); > > Thanks for pointing these warnings out, Hoss. =C2=A0I would like to silen= ce them, > but it's hard to do that portably -- for instance, we can't cast to "long= long > int" because it's not there on all systems. I do believe that we should compile warning free, but I'm not sure I'm understanding the issue here. Hoss's error is on GCC, we're targetting C99, and you already have U64P defined as a macro? Wouldn't "%zu" work fine without the cast? I think it's standard C99 at this point, and not just a GCC extension. But if you've got a macro anyway, it should be fine to use. Historically, the reason to avoid it was support under Windows, where you would have to use "%Iu" (that's a capital 'i', not a lower case 'L'). http://msdn.microsoft.com/en-us/library/tcxf1dw6(v=3DVS.100).aspx Or am I missing another layer of complexity? --nate