[commit: ghc] master: Suppress some more warnings from Clang. (232737a)

Austin Seipp mad.one at gmail.com
Wed Jun 19 04:33:09 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/232737a0260a04c6c274a4a619589aa078145416

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

commit 232737a0260a04c6c274a4a619589aa078145416
Author: Austin Seipp <aseipp at pobox.com>
Date:   Tue Jun 18 18:40:32 2013 -0500

    Suppress some more warnings from Clang.
    
    It likes to think lambdas a la:
    
        foo $ \u -> ...
    
    represent a kind of unicode extended literal.
    
    It also gets confused when you have things like:
    
        ... thing ... {- comment ... (???) -}
    
    where the (???) is mistaken as a trigraph.
    
    Signed-off-by: Austin Seipp <aseipp at pobox.com>

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

 mk/config.mk.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index a65dc69..1235798 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -619,7 +619,7 @@ CPP			= @CPP@ @CPPFLAGS@
 # Clang in particular is a bit more annoying, so we suppress some warnings.
 RAWCPP_FLAGS            = -undef -traditional
 ifeq "$(CC_CLANG_BACKEND)" "1"
-RAWCPP_FLAGS           += -Wno-invalid-pp-token
+RAWCPP_FLAGS           += -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs
 endif
 
 FIND			= @FindCmd@





More information about the ghc-commits mailing list