diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-07-26 12:25:08 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-08-02 10:53:38 -0400 |
commit | a43713d615bccbb109b5481e941b7d2ea37baf0f (patch) | |
tree | 957ba6c07075592db71c10859e1245f4c69ccb25 /CTestCustom.cmake.in | |
parent | b90de0b4921bb4b23c116e540819cbeb0cc79c99 (diff) | |
download | cmake-a43713d615bccbb109b5481e941b7d2ea37baf0f.tar.gz |
CTestCustom: ignore `cm::optional` uninitialized memory false positive
Diffstat (limited to 'CTestCustom.cmake.in')
-rw-r--r-- | CTestCustom.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index 49026a33d1..cb6b485906 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -83,6 +83,11 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION "compilation completed with warnings" # PGI "[0-9]+ Warning\\(s\\) detected" # SunPro + # Ignore false positive on `cm::optional` usage from GCC + "cmGlobalNinjaGenerator.cxx:[0-9]*:[0-9]*: warning: '.*cm::optional<CxxModuleMapFormat>::_mem\\)\\)' may be used uninitialized \\[-Wmaybe-uninitialized\\]" + "cmGlobalNinjaGenerator.cxx:[0-9]*:[0-9]*: note: '.*cm::optional<CxxModuleMapFormat>::_mem\\)\\)' was declared here" + "cmGlobalNinjaGenerator.cxx:[0-9]*:[0-9]*: warning: '\\*\\(\\(void\\*\\)& modmap_fmt \\+4\\)' may be used uninitialized in this function \\[-Wmaybe-uninitialized\\]" + # clang-analyzer exceptions "cmListFileLexer.c:[0-9]+:[0-9]+: warning: Array subscript is undefined" "jsoncpp/src/.*:[0-9]+:[0-9]+: warning: Value stored to .* is never read" |