Skip to content

Commit 10e0056

Browse files
author
Zachary Turner
committed
Disable C4062 on Windows.
The use of std::future introduces an implicit dependency on the PPL subcomponent of ConcRT. ConcRT in general is pretty noisy with warnings, so this patch just disables one of the noisy warnings. llvm-svn: 226590
1 parent c277b3f commit 10e0056

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lld/lib/ReaderWriter/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ add_subdirectory(YAML)
66

77
set(LLVM_LINK_COMPONENTS object support)
88

9+
if (MSVC)
10+
add_definitions(-wd4062) # Suppress 'warning C4062: Enumerator has no associated handler in a switch statement.'
11+
endif()
12+
913
add_lld_library(lldReaderWriter
1014
CoreLinkingContext.cpp
1115
FileArchive.cpp

0 commit comments

Comments
 (0)