From: "H. Peter Anvin" <hpa@zytor.com>
To: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Cc: Junio C Hamano <junkio@cox.net>, GIT Mailing-list <git@vger.kernel.org>
Subject: Re: Cygwin and git 1.5.1
Date: Tue, 10 Apr 2007 15:44:29 -0700 [thread overview]
Message-ID: <461C134D.8020803@zytor.com> (raw)
In-Reply-To: <461BCBC0.2000705@ramsay1.demon.co.uk>
Ramsay Jones wrote:
> Hi Junio,
>
> I recently upgraded to 1.5.1, via tarball as usual, without much problem.
> The only problem being the "printf format warnings" issue, which prevents
> me building with -Werror.
>
> I have included, below, an updated version of my patch from the 1.5.0
> series.
> We agreed last time that this patch is not the correct solution to this
> problem in general (but it works on cygwin!), so this is *not* intended
> for submission. I just wanted to document the problem. As before, I don't
> really have a solution; I suppose I will just have to carry this patch
> forward with each release - no big deal.
>
> Note that the patch has grown larger. This is due to the increased use of
> uint32_t (in combination with printf/die/error etc).
> I guess not many others use -Werror to build on cygwin! ;-)
The excruciatingly correct way to do this is to use the macros defined
in <inttypes.h>, so for uint32_t one should use %"PRNu32" instead of %u,
for example.
-hpa
next prev parent reply other threads:[~2007-04-10 22:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 17:39 Cygwin and git 1.5.1 Ramsay Jones
2007-04-10 22:44 ` H. Peter Anvin [this message]
2007-04-14 17:21 ` Ramsay Jones
2007-04-14 17:53 ` H. Peter Anvin
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=461C134D.8020803@zytor.com \
--to=hpa@zytor.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=ramsay@ramsay1.demon.co.uk \
/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;
as well as URLs for NNTP newsgroup(s).