From e4a361bbbf165c030ab05b7558b7a702b84ef358 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 27 May 2016 09:17:23 -0400 Subject: CTestCustom: Suppress Windows manifest unrecognized element warning Our `cmake.version.manifest` file uses a "compatibility" element for Windows 10 support. Older MS tools warn about it being unknown, so suppress the warning. --- CTestCustom.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index abef692..f78c936 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -53,7 +53,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION "[Qq]t([Cc]ore|[Gg]ui|[Ww]idgets).*warning.*conversion.*may alter its value" "warning:.*is.*very unsafe.*consider using.*" "warning:.*is.*misused, please use.*" - "CMakeSetupManifest.xml.*manifest authoring warning.*Unrecognized Element" + "cmake.version.manifest.*manifest authoring warning.*Unrecognized Element" "cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast "ld: warning: directory not found for option .-(F|L)" "ld: warning .*/libgcc.a archive's cputype" -- cgit v0.12 From 154fa2c544e53a77351b33446ce690ef36c646c0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 27 May 2016 09:18:49 -0400 Subject: CTestCustom: Suppress warnings about rand() on OpenBSD We first suppressed this in commit v3.1.0-rc1~647^2 (CTestCustom: Suppress warnings about rand() and srand() on OpenBSD, 2014-04-12). Add another variant of the warning wording. --- CTestCustom.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index f78c936..2f36001 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 + "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 -- cgit v0.12 From d4e58dd979d001c3e28283b184ebe71d9c88bf76 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 27 May 2016 09:21:44 -0400 Subject: CTestCustom: Suppress scanbuild warning on unsigned left shift The Clang scanbuild tool warns: Utilities/cmliblzma/liblzma/simple/x86.c:106:23: warning: The result of the '<<' expression is undefined src = dest ^ ((1u << (32 - i * 8)) - 1); ~~~^~~~~~~~~~~~~~~ AFAIK overflow of a left shift on an unsigned type is well-defined. --- CTestCustom.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index 2f36001..a39049b 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -81,6 +81,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION "index.c.*warning: Access to field.*results in a dereference of a null pointer.*loaded from variable.*" "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" ) if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode") -- cgit v0.12