summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-18 18:55:18 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-18 18:55:18 +0000
commitb88d8f63469ca7465f18ffa4f5b718fb55cbd74c (patch)
tree100199f1ac4f0541c25a4a6ea23da684198f3a8b /libcxx
parent824ed8c03ee17bf8680a8faac0ba5a2bd8c80dd3 (diff)
downloadbcm5719-llvm-b88d8f63469ca7465f18ffa4f5b718fb55cbd74c.tar.gz
bcm5719-llvm-b88d8f63469ca7465f18ffa4f5b718fb55cbd74c.zip
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. llvm-svn: 273092
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index 63971313cfe..c25b48f9f3b 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/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)
OpenPOWER on IntegriCloud