diff options
author | Brad King <brad.king@kitware.com> | 2016-09-01 15:14:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-03 11:56:13 (GMT) |
commit | c03a7b4f517fc4395a68cdfd143254b0a56622af (patch) | |
tree | 8c335726909eed8fa0f2ea6e57970c8d3c2af686 /CTestCustom.cmake.in | |
parent | 3825a564930ffe09fd681632a905ab9c91c41d98 (diff) | |
download | CMake-c03a7b4f517fc4395a68cdfd143254b0a56622af.zip CMake-c03a7b4f517fc4395a68cdfd143254b0a56622af.tar.gz CMake-c03a7b4f517fc4395a68cdfd143254b0a56622af.tar.bz2 |
CTestCustom: Suppress scan-build warnings in libuv
Clang scan-build warns in some expansions of RB_GENERATE_STATIC
that it has a "Dereference of null pointer". It also warns that
"The left operand of '==' is a garbage value" strangely. Simply
suppress these since this is third-party code anyway.
Diffstat (limited to 'CTestCustom.cmake.in')
-rw-r--r-- | CTestCustom.cmake.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index a39049b..1699492 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -62,6 +62,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION "warning.*This version of Mac OS X is unsupported" "clang.*: warning: argument unused during compilation: .-g" "note: in expansion of macro" # diagnostic context note + "note: expanded from macro" # diagnostic context note "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*may return deterministic values" "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*isn.*t random" # we do not do crypto "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*srand.*seed choices are.*poor" # we do not do crypto @@ -82,6 +83,8 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION "cm_sha2.*warning: Value stored to.*is never read" "testProcess.*warning: Dereference of null pointer .loaded from variable .invalidAddress.." "liblzma/simple/x86.c:[0-9]+:[0-9]+: warning: The result of the '<<' expression is undefined" + "libuv/src/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer" + "libuv/src/.*:[0-9]+:[0-9]+: warning: The left operand of '==' is a garbage value" ) if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode") |