]> granicus.if.org Git - llvm/commitdiff
Disable all warning for AlignOfTest.cpp.
authorGalina Kistanova <gkistanova@gmail.com>
Wed, 7 Jun 2017 06:30:27 +0000 (06:30 +0000)
committerGalina Kistanova <gkistanova@gmail.com>
Wed, 7 Jun 2017 06:30:27 +0000 (06:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304871 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/CMakeLists.txt

index 83d81927384ac60c1eb36f2b93a72de8bdb84f1d..098dba83197b5629937affb6fa09613cfe4c54cb 100644 (file)
@@ -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 <pthread>.
 target_link_libraries(SupportTests ${LLVM_PTHREAD_LIB})