From e8dbe4bba10dff2ac865b145830c931d1154d8fc Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Mon, 16 Dec 2019 14:23:26 -0500 Subject: Tests: Fix testCTestResourceSpec struct initialization for some compilers Some compilers do not like the nested `{{{}}}` member initialization syntax, so use just `{}`. GCC 4.8 warns about the latter, so add a suppression. Fixes: #20097 --- CTestCustom.cmake.in | 1 + 1 file changed, 1 insertion(+) (limited to 'CTestCustom.cmake.in') diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index 823ee3cb7c..d3ab9d3ef7 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -49,6 +49,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION "WarningMessagesDialog\\.cxx" "warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*" "stl_deque.h:1051" + "Tests/CMakeLib/testCTestResourceSpec.cxx:.*warning: missing initializer for member.*cmCTestResourceSpec::.*" # GCC 4.8 disagrees with later compilers on C++11 initializer list conversion "(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)" "(Lexer|Parser).*warning.*(statement is unreachable|will never be executed)" "(Lexer|Parser).*warning.*variable.*was set but never used" -- cgit v1.2.1