From 2739df917f2ac6b6d2d92fc97715a7337f3cb103 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 3 Aug 2017 12:34:20 +0200 Subject: [PATCH] mingw: disallow compile warnings during the build More than once, in this developer's past ignoring a compile warning resulted in multiple days of bug hunting, just to find out that the warning actually pointed to a serious problem like, say, an erroneous 64-bit -> 32-bit case (losing crucial information). So let's just not ignore those warnings but make them fatal instead. Signed-off-by: Johannes Schindelin --- configs/mingw32_defconfig | 2 +- configs/mingw64_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig index 40a23703a2..6c31938d85 100644 --- a/configs/mingw32_defconfig +++ b/configs/mingw32_defconfig @@ -76,7 +76,7 @@ CONFIG_DEBUG=y # CONFIG_DEBUG_PESSIMIZE is not set # CONFIG_DEBUG_SANITIZE is not set # CONFIG_UNIT_TEST is not set -# CONFIG_WERROR is not set +CONFIG_WERROR=y CONFIG_NO_DEBUG_LIB=y # CONFIG_DMALLOC is not set # CONFIG_EFENCE is not set diff --git a/configs/mingw64_defconfig b/configs/mingw64_defconfig index 9bbf4371cb..de693b7708 100644 --- a/configs/mingw64_defconfig +++ b/configs/mingw64_defconfig @@ -76,7 +76,7 @@ CONFIG_DEBUG=y # CONFIG_DEBUG_PESSIMIZE is not set # CONFIG_DEBUG_SANITIZE is not set # CONFIG_UNIT_TEST is not set -# CONFIG_WERROR is not set +CONFIG_WERROR=y CONFIG_NO_DEBUG_LIB=y # CONFIG_DMALLOC is not set # CONFIG_EFENCE is not set