summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-08-29 13:53:27 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-29 14:12:03 +0200
commitb6a4e66ffb173ea7081e332026e3c70a8c669dad (patch)
treeebe084d4c3d9a7e6af25051427855cdee66672c1 /tests/auto
parent3d13156025adf7bd8b343f8aa415a3b5eae07bfc (diff)
test: Mark tst_qtextboundaryfinder::generateDataFromFile() with internal build
This function only makes sense on a developer build. In non developer-builds you get: tst_qtextboundaryfinder.cpp:116:13: warning: ‘void generateDataFromFile(const QString&)’ defined but not used [-Wunused-function] Change-Id: Id1bda2d27b00048f7401606959b566a59c05b38d Reviewed-by: Toby Tomkins <tjtomkins@gmail.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp b/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
index 045da9f24c..134eb033a4 100644
--- a/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
+++ b/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
@@ -113,6 +113,7 @@ inline char *toString(const QList<int> &list)
} // namespace QTest
QT_END_NAMESPACE
+#ifdef QT_BUILD_INTERNAL
static void generateDataFromFile(const QString &fname)
{
QTest::addColumn<QString>("testString");
@@ -185,7 +186,6 @@ static void generateDataFromFile(const QString &fname)
}
}
-#ifdef QT_BUILD_INTERNAL
QT_BEGIN_NAMESPACE
extern Q_AUTOTEST_EXPORT int qt_initcharattributes_default_algorithm_only;
QT_END_NAMESPACE