forked from OSchip/llvm-project
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
This commit is contained in:
parent
824ed8c03e
commit
b88d8f6346
|
|
@ -310,6 +310,7 @@ add_definitions(-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||||
add_compile_flags_if_supported(
|
add_compile_flags_if_supported(
|
||||||
-Wall -W -Wwrite-strings
|
-Wall -W -Wwrite-strings
|
||||||
-Wno-unused-parameter -Wno-long-long -Wno-user-defined-literals
|
-Wno-unused-parameter -Wno-long-long -Wno-user-defined-literals
|
||||||
|
-Wno-covered-switch-default
|
||||||
-Werror=return-type)
|
-Werror=return-type)
|
||||||
if (LIBCXX_ENABLE_WERROR)
|
if (LIBCXX_ENABLE_WERROR)
|
||||||
add_compile_flags_if_supported(-Werror)
|
add_compile_flags_if_supported(-Werror)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue