[commit: ghc] wip/gc/nonmoving-nonconcurrent: rts: Disable aggregate-return warnings from gcc (09af00e)

git at git.haskell.org git at git.haskell.org
Thu Feb 21 15:12:36 UTC 2019


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

On branch  : wip/gc/nonmoving-nonconcurrent
Link       : http://ghc.haskell.org/trac/ghc/changeset/09af00ebb6a43ed678d4b43759d679d8785a7b95/ghc

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

commit 09af00ebb6a43ed678d4b43759d679d8785a7b95
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.


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

09af00ebb6a43ed678d4b43759d679d8785a7b95
 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