Filter out -Wcovered-switch-default from LLVM_CFLAGS
authorojab <ojab@ojab.ru>
Sun, 13 May 2012 10:56:00 +0000 (14:56 +0400)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 21 May 2012 07:37:06 +0000 (08:37 +0100)
Signed-off-by: José Fonseca <jfonseca@vmware.com>
configure.ac

index 844990a2848673acf2c15e5dea2714a432f030de..3bb51a2597bd454fed49dd40a09b51fe207cdcfa 100644 (file)
@@ -1830,7 +1830,7 @@ if test "x$enable_gallium_llvm" = xyes; then
 
     if test "x$LLVM_CONFIG" != xno; then
        LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
-       LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g'`
+       LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g' -e 's/-Wcovered-switch-default//g'`
        if test "x$with_llvm_shared_libs" = xyes; then
            dnl We can't use $LLVM_VERSION because it has 'svn' stripped out,
            LLVM_LIBS="-lLLVM-`$LLVM_CONFIG --version`"