diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2009-06-08 16:46:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-08 09:43:37 -0700 |
commit | a21077e75f55b4696ada33d7d09f016f4ef16167 (patch) | |
tree | 66e864b7e2b6324c08c5e9786f4f59cfb1031599 /sigchain.h | |
parent | Add custom memory allocator to MinGW and MacOS builds (diff) | |
download | tgif-a21077e75f55b4696ada33d7d09f016f4ef16167.tar.xz |
Fix warnings in nedmalloc when compiling with GCC 4.4.0
Nedmalloc's source code has a cute #define construct to avoid inserting
an if() statement, because that might interact badly with enclosing if()
statements. However, GCC > 4 complains with a "warning: value computed
is not used". So we cast the result to "void".
GCC also does not understand the Visual C++ specific pragmas, so we need
to disable them for MinGW.
We need to include malloc.h on Windows even if we happen to compile the
stuff as a MinGW program. Otherwise the function declaration of alloca()
is missing.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sigchain.h')
0 files changed, 0 insertions, 0 deletions