[lld] r226590 - Disable C4062 on Windows.

Zachary Turner zturner at google.com
Tue Jan 20 11:23:44 PST 2015


Author: zturner
Date: Tue Jan 20 13:23:44 2015
New Revision: 226590

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

Modified:
    lld/trunk/lib/ReaderWriter/CMakeLists.txt

Modified: lld/trunk/lib/ReaderWriter/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/CMakeLists.txt?rev=226590&r1=226589&r2=226590&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/CMakeLists.txt Tue Jan 20 13:23:44 2015
@@ -6,6 +6,10 @@ add_subdirectory(YAML)
 
 set(LLVM_LINK_COMPONENTS object support)
 
+if (MSVC)
+  add_definitions(-wd4062) # Suppress 'warning C4062: Enumerator has no associated handler in a switch statement.'
+endif()
+
 add_lld_library(lldReaderWriter
   CoreLinkingContext.cpp
   FileArchive.cpp





More information about the llvm-commits mailing list