File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,11 +43,13 @@ 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 mocs
46+ # caused by mocks
4747 target_compile_options_safe (test -resultstree -Wno-missing-noreturn )
4848elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
4949 # caused by mocs
5050 target_compile_options_safe (test -resultstree -Wno-useless-cast )
51+ # caused by mocks
52+ target_compile_options_safe (test -resultstree -Wno-suggest-attribute=noreturn )
5153endif ()
5254
5355if (REGISTER_GUI_TESTS)
Original file line number Diff line number Diff line change 2929
3030#include " application.h"
3131#include " checkers.h"
32+ #include " config.h"
3233#include " erroritem.h"
3334#include " errorlogger.h"
3435#include " errortypes.h"
@@ -85,13 +86,13 @@ ThreadHandler::~ThreadHandler() = default;
8586bool ThreadHandler::isChecking () const {
8687 return false ;
8788}
88- void ThreadHandler::stop () {
89+ NORETURN void ThreadHandler::stop () {
8990 throw 1 ;
9091}
91- void ThreadHandler::threadDone () {
92+ NORETURN void ThreadHandler::threadDone () {
9293 throw 1 ;
9394}
94- Application& ApplicationList::getApplication (const int /* unused*/ ) {
95+ NORETURN Application& ApplicationList::getApplication (const int /* unused*/ ) {
9596 throw 1 ;
9697}
9798const Application& ApplicationList::getApplication (const int index) const {
@@ -108,13 +109,13 @@ QString XmlReport::unquoteMessage(const QString &message) {
108109 return message;
109110}
110111XmlReport::XmlReport (const QString& filename) : Report(filename) {}
111- void ThreadResult::fileChecked (const QString & /* unused*/ ) {
112+ NORETURN void ThreadResult::fileChecked (const QString & /* unused*/ ) {
112113 throw 1 ;
113114}
114- void ThreadResult::reportOut (const std::string & /* unused*/ , Color /* unused*/ ) {
115+ NORETURN void ThreadResult::reportOut (const std::string & /* unused*/ , Color /* unused*/ ) {
115116 throw 1 ;
116117}
117- void ThreadResult::reportErr (const ErrorMessage & /* unused*/ ) {
118+ NORETURN void ThreadResult::reportErr (const ErrorMessage & /* unused*/ ) {
118119 throw 1 ;
119120}
120121
You can’t perform that action at this time.
0 commit comments