diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-26 19:41:23 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-29 14:33:29 +0200 |
commit | 9023791a45d11ec170e07f21bd106075c86dd3dc (patch) | |
tree | 83c79c87f2ff18ec9de85d4c8cc2e1eb7166793c /tests/auto/corelib/tools/qscopedpointer | |
parent | 6f17509ad9044c689e22719c6c4d1f7f88e4c954 (diff) |
Fix warnings about unused expression results in tests
Change-Id: I401ec8a3742a5bb51a1b8b291c53395c3880117c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qscopedpointer')
-rw-r--r-- | tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp b/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp index ea94cc2999..9c90b44e87 100644 --- a/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp +++ b/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp @@ -252,7 +252,7 @@ void tst_QScopedPointer::negationOperatorSignature() !p; /* The return value should be bool. */ - static_cast<bool>(!p); + Q_UNUSED(static_cast<bool>(!p)); } void tst_QScopedPointer::operatorBool() @@ -302,7 +302,7 @@ void tst_QScopedPointer::isNullSignature() const QScopedPointer<int> p(new int(69)); /* The signature should be const and return bool. */ - static_cast<bool>(p.isNull()); + Q_UNUSED(static_cast<bool>(p.isNull())); } void tst_QScopedPointer::objectSize() |