Skip to content

Commit

Permalink
Disable all warning for AlignOfTest.cpp.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304871 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gkistanova committed Jun 7, 2017
1 parent 51444fd commit 1a0f861
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unittests/Support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 1a0f861

Please sign in to comment.