diff options
author | Jan Kundrát <jkt@flaska.net> | 2013-01-17 11:38:59 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-20 02:47:15 (GMT) |
commit | 4326cff0ada1e1bd9265ff11a035ae21314471f0 (patch) | |
tree | 80d4215e9434040993c49695a1c2f3e2af9bc1af /src | |
parent | 90c410872e7bedc11b84ea6f6ab97fb0346ad140 (diff) | |
download | Qt-4326cff0ada1e1bd9265ff11a035ae21314471f0.zip Qt-4326cff0ada1e1bd9265ff11a035ae21314471f0.tar.gz Qt-4326cff0ada1e1bd9265ff11a035ae21314471f0.tar.bz2 |
Fix a -Wunused-private-field] warning
ABI compatibility dictates that these members cannot go. On the other hand, new
Clang warns about these being unused.
Konstantin Tokarev suggested adding Q_UNUSED to any method; this one looks as
good as the other one.
Change-Id: Icfb47bff7662d1f31f191a702416983776ce42e3
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestspontaneevent.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testlib/qtestspontaneevent.h b/src/testlib/qtestspontaneevent.h index d98bae8..54edb30 100644 --- a/src/testlib/qtestspontaneevent.h +++ b/src/testlib/qtestspontaneevent.h @@ -84,6 +84,11 @@ public: { // this is a static assert in case QEvent changed in Qt QEventSizeOfChecker<sizeof(QSpontaneKeyEvent)> dummy; + + // Fixing the warnings about unused variables + Q_UNUSED(posted); + Q_UNUSED(m_accept); + Q_UNUSED(reserved); } #endif |