From: Galina Kistanova Date: Wed, 7 Jun 2017 06:30:27 +0000 (+0000) Subject: Disable all warning for AlignOfTest.cpp. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a0f861c74902d60d0df363dded460dfa3741548;p=llvm Disable all warning for AlignOfTest.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304871 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt index 83d81927384..098dba83197 100644 --- a/unittests/Support/CMakeLists.txt +++ b/unittests/Support/CMakeLists.txt @@ -66,6 +66,11 @@ add_llvm_unittest(SupportTests xxhashTest.cpp ) +# Disable all warning for AlignOfTest.cpp, +# as it does things intentionally, and there is no reliable way of +# disabling all warnings for all the compilers by using pragmas. +set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w) + # ManagedStatic.cpp uses . target_link_libraries(SupportTests ${LLVM_PTHREAD_LIB})