File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ CheckOptions:
7575 # caused by Qt generated moc code starting with 6.9.0 - see https://bugreports.qt.io/browse/QTBUG-135638
7676 target_compile_options_safe(cppcheck-gui -Wno-ctad-maybe-unsupported)
7777 endif ()
78+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
79+ # caused by mocs
80+ target_compile_options_safe(cppcheck-gui -Wno-useless-cast)
7881 endif ()
7982 if (QT_VERSION VERSION_GREATER_EQUAL "6.9.2" )
8083 # QBrush fails to compile before 6.9.0 - see https://bugreports.qt.io/browse/QTBUG-134038
Original file line number Diff line number Diff line change @@ -43,8 +43,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
4343 # caused by Qt generated moc code starting with 6.9.0 - see https://bugreports.qt.io/browse/QTBUG-135638
4444 target_compile_options_safe(test -resultstree -Wno-ctad-maybe-unsupported)
4545 endif ()
46- # caused by mocks
46+ # caused by mocs
4747 target_compile_options_safe(test -resultstree -Wno-missing-noreturn)
48+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
49+ # caused by mocs
50+ target_compile_options_safe(test -resultstree -Wno-useless-cast)
4851endif ()
4952
5053if (REGISTER_GUI_TESTS)
You can’t perform that action at this time.
0 commit comments