summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-27 13:21:44 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-27 13:25:37 (GMT)
commitd4e58dd979d001c3e28283b184ebe71d9c88bf76 (patch)
tree29d34cbc2afd0ad331618de98c9e8501d047ef2a
parent154fa2c544e53a77351b33446ce690ef36c646c0 (diff)
downloadCMake-d4e58dd979d001c3e28283b184ebe71d9c88bf76.zip
CMake-d4e58dd979d001c3e28283b184ebe71d9c88bf76.tar.gz
CMake-d4e58dd979d001c3e28283b184ebe71d9c88bf76.tar.bz2
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.
-rw-r--r--CTestCustom.cmake.in1
1 files changed, 1 insertions, 0 deletions
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")