[llvm][unittests] Silence warning on MSVC after 5b2423183cb3
authorAlexandre Ganea <aganea@havenstudios.com>
Tue, 2 May 2023 12:49:35 +0000 (08:49 -0400)
committerAlexandre Ganea <aganea@havenstudios.com>
Tue, 2 May 2023 12:49:47 +0000 (08:49 -0400)
Differential revision: https://reviews.llvm.org/D149609

llvm/unittests/Object/CMakeLists.txt

index 2a361d4..75b4f20 100644 (file)
@@ -21,3 +21,8 @@ add_llvm_unittest(ObjectTests
   )
 
 target_link_libraries(ObjectTests PRIVATE LLVMTestingSupport)
+
+if (MSVC)
+  # Disable warning C4309: '=': truncation of constant value
+  set_source_files_properties(GOFFObjectFileTest.cpp PROPERTIES COMPILE_FLAGS -wd4309)
+endif()