[libcxx] r273092 - Add -Wno-covered-switch-default while compiling libc++

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 18 11:55:18 PDT 2016


Author: ericwf
Date: Sat Jun 18 13:55:18 2016
New Revision: 273092

URL: http://llvm.org/viewvc/llvm-project?rev=273092&view=rev
Log:
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.

Modified:
    libcxx/trunk/CMakeLists.txt

Modified: libcxx/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=273092&r1=273091&r2=273092&view=diff
==============================================================================
--- libcxx/trunk/CMakeLists.txt (original)
+++ libcxx/trunk/CMakeLists.txt Sat Jun 18 13:55:18 2016
@@ -310,6 +310,7 @@ add_definitions(-D_LIBCPP_HAS_NO_PRAGMA_
 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)




More information about the cfe-commits mailing list