summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io')
-rw-r--r--tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp b/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp
index 16b4fb4423..bbb5b10eb7 100644
--- a/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp
+++ b/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp
@@ -480,13 +480,13 @@ static QString fallbackXdgRuntimeDir()
}
#endif
-static QString updateRuntimeDir(const QString &path)
+[[maybe_unused]] static QString updateRuntimeDir(const QString &path)
{
qputenv("XDG_RUNTIME_DIR", QFile::encodeName(path));
return path;
}
-static void clearRuntimeDir()
+[[maybe_unused]] static void clearRuntimeDir()
{
qunsetenv("XDG_RUNTIME_DIR");
#ifdef Q_XDG_PLATFORM