aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/tracing
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-23 10:58:00 +0200
committerhjk <hjk@qt.io>2019-07-23 11:55:59 +0000
commit251287f0d35dd82e68dabed8214ef8af893aff91 (patch)
treea3ba843c1c23f4aea06bc01bf7ab0dd69d6fc741 /tests/auto/tracing
parent2b26eca80f9ebcdc2f1dc0d890a39a4fbc2d129c (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 'tests/auto/tracing')
-rw-r--r--tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp6
-rw-r--r--tests/auto/tracing/timelinerenderpass/tst_timelinerenderpass.cpp12
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp b/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp
index d29ee1f7c8..1046a83597 100644
--- a/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp
+++ b/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp
@@ -87,9 +87,9 @@ public:
Q_INVOKABLE void gotoSourceLocation(const QString &file, int line, int column)
{
- Q_UNUSED(file);
- Q_UNUSED(line);
- Q_UNUSED(column);
+ Q_UNUSED(file)
+ Q_UNUSED(line)
+ Q_UNUSED(column)
}
};
diff --git a/tests/auto/tracing/timelinerenderpass/tst_timelinerenderpass.cpp b/tests/auto/tracing/timelinerenderpass/tst_timelinerenderpass.cpp
index cfff804e52..d59fad4284 100644
--- a/tests/auto/tracing/timelinerenderpass/tst_timelinerenderpass.cpp
+++ b/tests/auto/tracing/timelinerenderpass/tst_timelinerenderpass.cpp
@@ -45,12 +45,12 @@ TimelineRenderPass::State *DummyRenderPass::update(const TimelineAbstractRendere
State *state, int indexFrom, int indexTo,
bool stateChanged, float spacing) const
{
- Q_UNUSED(renderer);
- Q_UNUSED(parentState);
- Q_UNUSED(indexFrom);
- Q_UNUSED(indexTo);
- Q_UNUSED(stateChanged);
- Q_UNUSED(spacing);
+ Q_UNUSED(renderer)
+ Q_UNUSED(parentState)
+ Q_UNUSED(indexFrom)
+ Q_UNUSED(indexTo)
+ Q_UNUSED(stateChanged)
+ Q_UNUSED(spacing)
return state;
}