From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14828 invoked by alias); 22 May 2009 08:42:15 -0000 Received: (qmail 14814 invoked by uid 22791); 22 May 2009 08:42:14 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,J_CHICKENPOX_44,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f107.google.com (HELO mail-pz0-f107.google.com) (209.85.222.107) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 May 2009 08:42:09 +0000 Received: by pzk5 with SMTP id 5so1710455pzk.12 for ; Fri, 22 May 2009 01:42:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.68.10 with SMTP id q10mr102044tia.21.1242981726613; Fri, 22 May 2009 01:42:06 -0700 (PDT) In-Reply-To: <83ws89occi.fsf@gnu.org> References: <20090518153510.GA23052@ednor.casa.cgf.cx> <20090521152621.GA27524@ednor.casa.cgf.cx> <20090521173804.GA27866@ednor.casa.cgf.cx> <20090522004623.GI28993@ednor.casa.cgf.cx> <20090522041341.GA13509@ednor.casa.cgf.cx> <20090522060545.GA15680@adacore.com> <83ws89occi.fsf@gnu.org> Date: Fri, 22 May 2009 08:42:00 -0000 Message-ID: Subject: Re: [Prec/RFA] fix build error of prec in cygwin From: Hui Zhu To: Eli Zaretskii , Joel Brobecker , Christopher Faylor Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00483.txt.bz2 I tried with gcc. cat 1.c #include #include #include #include #include #include #include #include #include int main(int argc,char *argv[],char *envp[]) { printf ("%uz", sizeof (int)); return (0); } gcc -std=c89 -Wall -pedantic 1.c No warning. Thanks, Hui On Fri, May 22, 2009 at 14:55, Eli Zaretskii wrote: >> Date: Thu, 21 May 2009 23:05:45 -0700 >> From: Joel Brobecker >> >> > "%zu" >> >> Are we allowed to use %z? > > No, I don't think so. > >> I thought that %z is C99 > > It is. > > I think the best we can do with C90 is use %lu and cast to > `unsigned long'. >