From a8b42f490fa1945769c56678d4a9887ec6edb56d Mon Sep 17 00:00:00 2001 From: firewave Date: Wed, 13 Aug 2025 23:15:50 +0200 Subject: [PATCH] testresultstree.cpp: fixed `-Wsuggest-attribute=noreturn` GCC warnings --- gui/test/resultstree/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/test/resultstree/CMakeLists.txt b/gui/test/resultstree/CMakeLists.txt index 453e13f7ea8..a39809e2ebc 100644 --- a/gui/test/resultstree/CMakeLists.txt +++ b/gui/test/resultstree/CMakeLists.txt @@ -43,11 +43,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") # caused by Qt generated moc code starting with 6.9.0 - see https://bugreports.qt.io/browse/QTBUG-135638 target_compile_options_safe(test-resultstree -Wno-ctad-maybe-unsupported) endif() - # caused by mocs + # caused by mocks target_compile_options_safe(test-resultstree -Wno-missing-noreturn) elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # caused by mocs target_compile_options_safe(test-resultstree -Wno-useless-cast) + # caused by mocks + target_compile_options_safe(test-resultstree -Wno-suggest-attribute=noreturn) endif() if (REGISTER_GUI_TESTS)