From feeb27f3c98daf3c80424c420a1b19e417bbe5b5 Mon Sep 17 00:00:00 2001 From: versat Date: Wed, 20 Nov 2019 08:37:46 +0100 Subject: [PATCH] gui/checkthread.cpp: Fix warning "empty expression has no effect" The trailing semicolons are redundant. "switch(){}" does not need one and "Q_UNUSED()" already includes one. --- gui/checkthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp index 31703812a..ad60c1d0a 100644 --- a/gui/checkthread.cpp +++ b/gui/checkthread.cpp @@ -178,7 +178,7 @@ void CheckThread::runAddonsAndTools(const ImportProject::FileSettings *fileSetti case Standards::CPP20: args << "-std=c++20"; break; - }; + } } QString analyzerInfoFile; @@ -334,7 +334,7 @@ void CheckThread::stop() void CheckThread::parseAddonErrors(QString err, const QString &tool) { - Q_UNUSED(tool); + Q_UNUSED(tool) QTextStream in(&err, QIODevice::ReadOnly); while (!in.atEnd()) { QString line = in.readLine();