summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-03-23 11:44:19 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-27 16:35:39 +0200
commit2c4845ce331e5dfaf5e106f74871ce16721a1358 (patch)
tree32bf5ee220e114e0bee7ab49fc79a3a287c0f121 /tests/auto/corelib/tools
parent0ee1b4a1dea8b587a5d39bfeb7e18c97f13dd877 (diff)
Fix some compiler warnings in tests.
- Unused variables - Deprecated conversion from const char * to char *. Change-Id: Iea0b9c4613ea74cead6d95ba12ad1028f531cbff Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r--tests/auto/corelib/tools/qstring/tst_qstring.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
index f007d44262..4eabd61025 100644
--- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp
+++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
@@ -718,6 +718,11 @@ void tst_QString::acc_01()
}
}
+#ifdef Q_CC_GNU
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wformat-security"
+#endif
+
void tst_QString::isNull()
{
QString a;
@@ -728,6 +733,10 @@ void tst_QString::isNull()
QVERIFY(!a.isNull());
}
+#ifdef Q_CC_GNU
+# pragma GCC diagnostic pop
+#endif
+
void tst_QString::isEmpty()
{
QString a;