From c03a7b4f517fc4395a68cdfd143254b0a56622af Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 1 Sep 2016 11:14:19 -0400 Subject: [PATCH] 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. --- CTestCustom.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index a39049b84..1699492a0 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")