summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2019-02-05 12:48:29 -0500
committerBen Gamari <ben@smart-cactus.org>2019-10-20 21:15:37 -0400
commit4be5152a04fe8cdeac896a934c64fea0590aacb8 (patch)
treee8984ad06b9412230c0172daff09e9db9874f55a /rts
parent32500f64935201828843b29899aaf28d3a1aa777 (diff)
downloadhaskell-4be5152a04fe8cdeac896a934c64fea0590aacb8.tar.gz
rts: Disable aggregate-return warnings from gcc
This warning is a bit of a relic; there is little reason to avoid aggregate return values in 2019.
Diffstat (limited to 'rts')
-rw-r--r--rts/ghc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index c07cfaec86..57f5bf3e39 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -340,6 +340,8 @@ WARNING_OPTS += -Wredundant-decls
ifeq "$(GccLT46)" "NO"
WARNING_OPTS += -Wundef
endif
+# Some gccs annoyingly enable this archaic specimen by default
+WARNING_OPTS += -Wno-aggregate-return
# These ones are hard to avoid:
#WARNING_OPTS += -Wconversion