From d9bca8ab7d12e30e002d9b06061ed1c6cdc0e6b7 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 18 Jun 2016 18:55:18 +0000 Subject: [PATCH] Add -Wno-covered-switch-default while compiling libc++ fstream has a switch over ios_base::seekdir which provides a defensive default case. This seems like the right thing for fstream to do, but we need to disable clangs warning during the build to allow this. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273092 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63971313c..c25b48f9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,6 +310,7 @@ add_definitions(-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) add_compile_flags_if_supported( -Wall -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Wno-user-defined-literals + -Wno-covered-switch-default -Werror=return-type) if (LIBCXX_ENABLE_WERROR) add_compile_flags_if_supported(-Werror)