Skip to content

Commit 27dcd3e

Browse files
committed
testresultstree.cpp: fixed -Wsuggest-attribute=noreturn GCC warnings
1 parent ccb8669 commit 27dcd3e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

gui/test/resultstree/testresultstree.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
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;
8586
bool 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
}
9798
const Application& ApplicationList::getApplication(const int index) const {
@@ -108,13 +109,13 @@ QString XmlReport::unquoteMessage(const QString &message) {
108109
return message;
109110
}
110111
XmlReport::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

0 commit comments

Comments
 (0)