[commit: ghc] wip/nonmoving-gc: rts: Disable aggregate-return warnings from gcc (828c007)

git at git.haskell.org git at git.haskell.org
Wed Feb 6 14:10:01 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nonmoving-gc
Link       : http://ghc.haskell.org/trac/ghc/changeset/828c00730ac76f44e6aa72a4b91f08fb10829e08/ghc

>---------------------------------------------------------------

commit 828c00730ac76f44e6aa72a4b91f08fb10829e08
Author: Ben Gamari <ben at well-typed.com>
Date:   Tue Feb 5 12:48:29 2019 -0500

    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.


>---------------------------------------------------------------

828c00730ac76f44e6aa72a4b91f08fb10829e08
 rts/ghc.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rts/ghc.mk b/rts/ghc.mk
index ff3f18f..cf29ae5 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -336,6 +336,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



More information about the ghc-commits mailing list