From: Johannes Sixt <j.sixt@viscovery.net>
To: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Cc: Junio C Hamano <gitster@pobox.com>,
Marius Storm-Olsen <mstormo@gmail.com>,
GIT Mailing-list <git@vger.kernel.org>
Subject: Re: [RFC PATCH 2/2] MSVC: Fix an "incompatible pointer types" compiler warning
Date: Fri, 04 Dec 2009 08:44:39 +0100 [thread overview]
Message-ID: <4B18BDE7.3050004@viscovery.net> (raw)
In-Reply-To: <4B1806FB.2050401@ramsay1.demon.co.uk>
Ramsay Jones schrieb:
> In order to avoid the compiler warning, we use the appropriate
> structure type names (and function names) from the msvc headers.
> This allows us to compile with -D_USE_32BIT_TIME_T if necessary.
"if necessary"? Who defines when -D_USE_32BIT_TIME_T is necessary?
> Also, I added the "&& defined(_stati64)" in the hope that it would work with
> older msvc/sdk versions.
I think that this is an unnecessary complication and I did wonder why you
added this extra check. Anybody doing some serious development with MS's
tools is using VS2005 at least. But isn't the .vcproj file made for VS2008
anyway?
> The reason for the RFC is:
>
> - maybe we don't need the flexibility of compiling with/without the 32-bit
> time_t definition (which *works* BTW) and can revert to the original patch?
Indeed I'm wondering why we should cater for 64 bit time_t. It is an
unnessary complication as long as MinGW gcc supports only 32 bit time_t
and the old MSVCRT.DLL.
> - I *think* this will work with older msvc, but I can't test it!
This should not be a concern, IMHO.
> - I've tried to be careful not to break the MinGW build, but again I can't
> test it. (I will be shocked if I have ;-)
It compiles without warnings and doesn't break t/t[01]* ;)
-- Hannes
next prev parent reply other threads:[~2009-12-04 7:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-03 18:44 [RFC PATCH 2/2] MSVC: Fix an "incompatible pointer types" compiler warning Ramsay Jones
2009-12-04 7:44 ` Johannes Sixt [this message]
2009-12-04 22:50 ` Ramsay Jones
2009-12-04 10:47 ` Johannes Schindelin
2009-12-04 22:58 ` Ramsay Jones
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=4B18BDE7.3050004@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mstormo@gmail.com \
--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).