From af928dd16006729a6b9f0c3c866fd2e57b5bda01 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Wed, 19 Oct 2016 14:09:34 +0200 Subject: tst_qstandardpaths: #if-out a function only used within #if-ery Avoids an unused function warning. Change-Id: Id221595920e9a34eb83b66fe123d664f60fcae05 Reviewed-by: Mikhail Svetkin Reviewed-by: Timur Pocheptsov --- tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp') diff --git a/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp b/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp index 3de777653e..5cb130f631 100644 --- a/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp +++ b/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp @@ -183,12 +183,14 @@ void tst_qstandardpaths::testDefaultLocations() #endif } +#ifdef Q_XDG_PLATFORM static void createTestFile(const QString &fileName) { QFile file(fileName); QVERIFY(file.open(QIODevice::WriteOnly)); QVERIFY(file.write("Hello")); } +#endif void tst_qstandardpaths::testCustomLocations() { -- cgit v1.2.3