Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jie Zhang <jie.zhang@analog.com>
To: Hui Zhu <teawater@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	Joel Brobecker <brobecker@adacore.com>,
	  Christopher Faylor
	<cgf-use-the-mailinglist-please@sourceware.org>,
	 gdb-patches@sourceware.org
Subject: Re: [Prec/RFA] fix build error of prec in cygwin
Date: Fri, 22 May 2009 10:11:00 -0000	[thread overview]
Message-ID: <4A1679D3.7080402@analog.com> (raw)
In-Reply-To: <daef60380905220142q2b20a1d8m75425eac3e654bd8@mail.gmail.com>

Hui Zhu wrote:
> I tried with gcc.
> 
> cat 1.c
> #include <sys/types.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <unistd.h>
> #include <errno.h>
> #include <sys/stat.h>
> #include <fcntl.h>
> #include <stdint.h>
> 
> 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 <eliz@gnu.org> wrote:
>>> Date: Thu, 21 May 2009 23:05:45 -0700
>>> From: Joel Brobecker <brobecker@adacore.com>
>>>
>>>> "%zu"
>>> Are we allowed to use %z?
>> No, I don't think so.
>>
>>> I thought that %z is C99
>> It is.
>>


Jie


  parent reply	other threads:[~2009-05-22 10:11 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-10 17:31 Hui Zhu
2009-05-10 17:48 ` Christopher Faylor
2009-05-10 18:07   ` Hui Zhu
2009-05-10 23:51     ` Christopher Faylor
2009-05-18  8:43       ` Hui Zhu
2009-05-18 15:35         ` Christopher Faylor
2009-05-19  2:34           ` Hui Zhu
2009-05-21  2:39             ` Hui Zhu
2009-05-21 15:26               ` Christopher Faylor
2009-05-21 15:35                 ` Pedro Alves
2009-05-21 17:35                   ` Christopher Faylor
2009-05-21 16:43                 ` Hui Zhu
2009-05-21 17:38                   ` Christopher Faylor
2009-05-21 23:14                     ` Hui Zhu
2009-05-22  0:46                       ` Christopher Faylor
2009-05-22  2:12                         ` Hui Zhu
2009-05-22  4:13                           ` Christopher Faylor
2009-05-22  5:53                             ` Hui Zhu
2009-05-22  6:05                             ` Joel Brobecker
2009-05-22  6:56                               ` Eli Zaretskii
2009-05-22  8:42                                 ` Hui Zhu
2009-05-22  9:37                                   ` Eli Zaretskii
2009-05-22 10:11                                   ` Jie Zhang [this message]
2009-05-22  9:06                                 ` Hui Zhu
2009-05-22  9:30                                   ` Eli Zaretskii
2009-05-22 14:11                                     ` Hui Zhu
2009-05-22 17:02                               ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A1679D3.7080402@analog.com \
    --to=jie.zhang@analog.com \
    --cc=brobecker@adacore.com \
    --cc=cgf-use-the-mailinglist-please@sourceware.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=teawater@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox