summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in1
-rw-r--r--mk/warnings.mk2
2 files changed, 0 insertions, 3 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 05ad6ad199..cd85c65189 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -526,7 +526,6 @@ GccVersion = @GccVersion@
# TargetPlatformFull retains the string passed to configure so we have it in
# the necessary format to pass to libffi's configure.
TargetPlatformFull = @TargetPlatformFull@
-GccLT46 = @GccLT46@
# Do we have a C compiler using an LLVM back end?
CcLlvmBackend = @CcLlvmBackend@
diff --git a/mk/warnings.mk b/mk/warnings.mk
index cee408d061..e2116a332a 100644
--- a/mk/warnings.mk
+++ b/mk/warnings.mk
@@ -21,12 +21,10 @@ ifneq "$(CcLlvmBackend)" "YES"
# Debian doesn't turn -Werror=unused-but-set-variable on by default, so
# we turn it on explicitly for consistency with other users
-ifeq "$(GccLT46)" "NO"
# Never set the flag on Windows as the host gcc may be too old.
ifneq "$(HostOS_CPP)" "mingw32"
SRC_CC_WARNING_OPTS += -Werror=unused-but-set-variable
endif
-endif
# Suppress the warning about __sync_fetch_and_nand (#9678).
libraries/ghc-prim/cbits/atomic_CC_OPTS += -Wno-sync-nand