From a2546af6686b7f55ce21660821dba2bde641efcf Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 19 Aug 2009 09:59:58 +0200 Subject: [PATCH] MinGW means that we have gcc, so we can add gcc-specific compiler options These were suggested by Junio at some stage. Signed-off-by: Johannes Schindelin --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index fea237bc80..8f1f157e4f 100644 --- a/Makefile +++ b/Makefile @@ -980,6 +980,9 @@ ifneq (,$(findstring MINGW,$(uname_S))) NO_REGEX = YesPlease COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -DNOGDI -Icompat -Icompat/fnmatch COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\" + # We have GCC, so let's make use of those nice options + COMPAT_CFLAGS += -Werror -Wno-pointer-to-int-cast \ + -Wold-style-definition -Wdeclaration-after-statement COMPAT_OBJS += compat/mingw.o compat/fnmatch/fnmatch.o compat/winansi.o EXTLIBS += -lws2_32 X = .exe