diff options
author | hjk <hjk@qt.io> | 2019-07-23 10:58:00 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-07-23 11:55:59 +0000 |
commit | 251287f0d35dd82e68dabed8214ef8af893aff91 (patch) | |
tree | a3ba843c1c23f4aea06bc01bf7ab0dd69d6fc741 /src/plugins/projectexplorer/outputparser_test.cpp | |
parent | 2b26eca80f9ebcdc2f1dc0d890a39a4fbc2d129c (diff) |
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>
Diffstat (limited to 'src/plugins/projectexplorer/outputparser_test.cpp')
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index 765a087650..17834ff5c8 100644 --- a/src/plugins/projectexplorer/outputparser_test.cpp +++ b/src/plugins/projectexplorer/outputparser_test.cpp @@ -137,7 +137,7 @@ void OutputParserTester::appendOutputParser(IOutputParser *parser) void OutputParserTester::outputAdded(const QString &line, BuildStep::OutputFormat format) { - Q_UNUSED(format); + Q_UNUSED(format) if (!m_receivedOutput.isEmpty()) m_receivedOutput.append('\n'); m_receivedOutput.append(line); @@ -145,8 +145,8 @@ void OutputParserTester::outputAdded(const QString &line, BuildStep::OutputForma void OutputParserTester::taskAdded(const Task &task, int linkedLines, int skipLines) { - Q_UNUSED(linkedLines); - Q_UNUSED(skipLines); + Q_UNUSED(linkedLines) + Q_UNUSED(skipLines) m_receivedTasks.append(task); } |