Skip to content

Commit e07b027

Browse files
committed
fixed -Wmissing-noreturn Clang warnings
1 parent ec63711 commit e07b027

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

gui/cppchecklibrarydata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
const unsigned int CppcheckLibraryData::Function::Arg::ANY = ~0U;
3434
const unsigned int CppcheckLibraryData::Function::Arg::VARIADIC = ~1U;
3535

36-
static std::string unhandledElement(const QXmlStreamReader &xmlReader)
36+
NORETURN static std::string unhandledElement(const QXmlStreamReader &xmlReader)
3737
{
3838
throw std::runtime_error(QObject::tr("line %1: Unhandled element %2").arg(xmlReader.lineNumber()).arg(xmlReader.name().toString()).toStdString());
3939
}
4040

41-
static std::string mandatoryAttibuteMissing(const QXmlStreamReader &xmlReader, const QString& attributeName)
41+
NORETURN static std::string mandatoryAttibuteMissing(const QXmlStreamReader &xmlReader, const QString& attributeName)
4242
{
4343
throw std::runtime_error(QObject::tr("line %1: Mandatory attribute '%2' missing in '%3'")
4444
.arg(xmlReader.lineNumber())

test/testexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DummyExecutor : public Executor
3838
: Executor(files, fileSettings, settings, suppressions, errorLogger)
3939
{}
4040

41-
unsigned int check() override
41+
NORETURN unsigned int check() override
4242
{
4343
throw std::runtime_error("not implemented");
4444
}

0 commit comments

Comments
 (0)