From a43713d615bccbb109b5481e941b7d2ea37baf0f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 26 Jul 2022 12:25:08 -0400 Subject: CTestCustom: ignore `cm::optional` uninitialized memory false positive --- CTestCustom.cmake.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CTestCustom.cmake.in') 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::_mem\\)\\)' may be used uninitialized \\[-Wmaybe-uninitialized\\]" + "cmGlobalNinjaGenerator.cxx:[0-9]*:[0-9]*: note: '.*cm::optional::_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" -- cgit v1.2.1