[llvm] r304871 - Disable all warning for AlignOfTest.cpp.

Galina Kistanova via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 23:30:27 PDT 2017


Author: gkistanova
Date: Wed Jun  7 01:30:27 2017
New Revision: 304871

URL: http://llvm.org/viewvc/llvm-project?rev=304871&view=rev
Log:
Disable all warning for AlignOfTest.cpp.

Modified:
    llvm/trunk/unittests/Support/CMakeLists.txt

Modified: llvm/trunk/unittests/Support/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/CMakeLists.txt?rev=304871&r1=304870&r2=304871&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/CMakeLists.txt (original)
+++ llvm/trunk/unittests/Support/CMakeLists.txt Wed Jun  7 01:30:27 2017
@@ -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})
 




More information about the llvm-commits mailing list