Re: [PATCH 10/11] Fix warnings in nedmalloc when compiling with GCC 4.4.0
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 3, 2009, 17:23 UTC
- Message-ID
- <7vprdl9qon.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0906031455520.10241@intel-tinevez-2-302>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
>> As to the second one, I think you lost "even if we happen to" part (that >> logically corresponds to "... that is why we do not want to limit the >> inclusion to !__MINGW32__ case") from the description, making it less >> readable... > > You mean "even if we happen to be on Windows"?
I meant this part from your earlier message.
> It helps in that malloc.h is included even if we happen to compile the > stuff as a MinGW program. Otherwise necessary function declarations are > missing.
compared with the newer "how about" version, which is
>> > Also, with the version of MinGW's headers in msysGit, we need to include >> > malloc.h lest the compiler complain about an "incompatible implicit >> > declaration of built-in function 'alloca'".
I thought the former explains the change in question
>> > -#if defined(WIN32) && !defined(__MINGW32__) >> > +#if defined(WIN32)
much more clearly: "If you are compiling for Windows, regardless of MINGW32, you would want this section to apply".
> ... Want me to resend a fixed patch?
Surely. I think I could come up with something based on the discussion here, but I'd rather not. A patch signed off by either you or Steffen, or both is very much appreciated.