diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-11 11:17:30 -0700 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-04-11 19:27:02 +0000 |
commit | b6cb170b77318401d559564038e846ddcd46d337 (patch) | |
tree | 1a17cde159367c55c20316686129b5a2223d1c63 /tests | |
parent | 6e975829c17d15835d0567e00d3abb19774ef114 (diff) | |
download | qtlocation-b6cb170b77318401d559564038e846ddcd46d337.tar.gz |
Fix warning about unused parameter only used in Q_ASSERT
Somehow MSVC still sees it as unused, despite our best efforts in
Q_ASSERT. So add Q_UNUSED.
qdeclarativepinchgenerator.cpp(218) : warning C4100: 'event' : unreferenced formal parameter
Change-Id: I523b0abacd5148b2bf08fffd14b46aa8f8409f42
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp index 3026cd92..b8866b48 100644 --- a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp +++ b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp @@ -218,6 +218,7 @@ void QDeclarativePinchGenerator::itemChange(ItemChange change, const ItemChangeD void QDeclarativePinchGenerator::timerEvent(QTimerEvent *event) { Q_ASSERT(replayTimer_ == event->timerId()); + Q_UNUSED(event); Q_ASSERT(state_ == Replaying); int slaveSwipe = masterSwipe_ ^ 1; |