Avoid warning on empty expressions

For some reason, Q_UNUSED includes already a semicolon, adding one
on the user side creates an additional empty statement.

Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-07-23 10:58:00 +02:00
parent 2b26eca80f
commit 251287f0d3
283 changed files with 781 additions and 781 deletions

View File

@@ -389,7 +389,7 @@ void QbsBuildStep::handleProgress(int value)
void QbsBuildStep::handleCommandDescriptionReport(const QString &highlight, const QString &message)
{
Q_UNUSED(highlight);
Q_UNUSED(highlight)
emit addOutput(message, OutputFormat::Stdout);
}

View File

@@ -138,7 +138,7 @@ void QbsCleanStep::cleaningDone(bool success)
void QbsCleanStep::handleTaskStarted(const QString &desciption, int max)
{
Q_UNUSED(desciption);
Q_UNUSED(desciption)
m_maxProgress = max;
}

View File

@@ -77,7 +77,7 @@ void QbsLogSink::doPrintWarning(const qbs::ErrorInfo &warning)
void QbsLogSink::doPrintMessage(qbs::LoggerLevel level, const QString &message, const QString &tag)
{
Q_UNUSED(tag);
Q_UNUSED(tag)
{
QMutexLocker l(&m_mutex);

View File

@@ -104,8 +104,8 @@ QbsProjectManagerPlugin::~QbsProjectManagerPlugin()
bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
Q_UNUSED(arguments);
Q_UNUSED(errorMessage);
Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
d = new QbsProjectManagerPluginPrivate;

View File

@@ -187,7 +187,7 @@ void QbsProjectParser::handleQbsParsingProgress(int progress)
void QbsProjectParser::handleQbsParsingTaskSetup(const QString &description, int maximumProgressValue)
{
Q_UNUSED(description);
Q_UNUSED(description)
if (m_fi) {
m_currentProgressBase = m_fi->progressValue();
m_fi->setProgressRange(0, m_currentProgressBase + maximumProgressValue);