From d30e8db6a8bb97695ddd56ab26a057388b8c7bd0 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 19 Jan 2018 13:23:47 +0100 Subject: [PATCH] bsd.sys.mk: Set -Werror only for compilers that have the warnings fixed. This reverts part of b399af1115fa4d2d29e5b5e59eb3a5c3087dccda. --- share/mk/bsd.sys.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index e36d36443a..5fd2909c52 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -24,7 +24,7 @@ CFLAGS += -std=${CSTD} . if defined(WARNS) . if ${WARNS} >= 1 CWARNFLAGS += -Wmissing-include-dirs -Wsystem-headers -. if !defined(NO_WERROR) && ${CCVER:Mgcc*} +. if !defined(NO_WERROR) && (${CCVER} == "gcc47" || ${CCVER} == "gcc50") CWARNFLAGS += -Werror . endif . endif @@ -89,7 +89,7 @@ WFORMAT = 1 . if defined(WFORMAT) . if ${WFORMAT} > 0 CWARNFLAGS += -Wformat=2 -Wno-format-extra-args -. if !defined(NO_WERROR) && ${CCVER:Mgcc*} +. if !defined(NO_WERROR) && (${CCVER} == "gcc47" || ${CCVER} == "gcc50") CWARNFLAGS += -Werror . endif . endif -- 2.41.0