summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestsystem.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-01-03 14:31:31 -0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-17 01:36:39 +0100
commitcc2079c85032f51e7bb0ac5a296d25777fb652c0 (patch)
treec27aaa0a177f747f6a94e3a4bd0af541cf7ab2e7 /src/testlib/qtestsystem.h
parent55659fb5a4efd3fee813627350287c0b45a6dc9c (diff)
Fix QtTest function-unused warnings found by Clang 3.4
The front-end functions in the QTest namespace are declared static inline, so the compiler can complain. Make it not do so. Change-Id: I4036c85010e02ef22a8071ed05e49173dfc64729 Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to 'src/testlib/qtestsystem.h')
-rw-r--r--src/testlib/qtestsystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h
index 2a719e96f1..f859ff164d 100644
--- a/src/testlib/qtestsystem.h
+++ b/src/testlib/qtestsystem.h
@@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE
namespace QTest
{
- inline static void qWait(int ms)
+ Q_DECL_UNUSED inline static void qWait(int ms)
{
Q_ASSERT(QCoreApplication::instance());