From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14746 invoked by alias); 22 May 2009 10:11:59 -0000 Received: (qmail 14422 invoked by uid 22791); 22 May 2009 10:11:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,J_CHICKENPOX_44 X-Spam-Check-By: sourceware.org Received: from nwd2mail11.analog.com (HELO nwd2mail11.analog.com) (137.71.25.57) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 May 2009 10:11:52 +0000 Received: from nwd2hubcas2.ad.analog.com ([10.64.73.30]) by nwd2mail11.analog.com with ESMTP; 22 May 2009 06:11:50 -0400 Received: from nwd2exm5.ad.analog.com (10.64.51.20) by NWD2HUBCAS2.ad.analog.com (10.64.73.30) with Microsoft SMTP Server id 8.1.358.0; Fri, 22 May 2009 06:10:09 -0400 Received: from chinexm1.ad.analog.com ([10.99.27.42]) by nwd2exm5.ad.analog.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 22 May 2009 06:09:28 -0400 Received: from [10.99.29.100] ([10.99.29.100]) by chinexm1.ad.analog.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 22 May 2009 18:09:25 +0800 Message-ID: <4A1679D3.7080402@analog.com> Date: Fri, 22 May 2009 10:11:00 -0000 From: Jie Zhang User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Hui Zhu CC: Eli Zaretskii , Joel Brobecker , Christopher Faylor , gdb-patches@sourceware.org Subject: Re: [Prec/RFA] fix build error of prec in cygwin 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> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed 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/msg00487.txt.bz2 Hui Zhu wrote: > 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)); I think there is a typo. If you use "%zu", you will see the expected warning. > > 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. >> Jie