aboutsummaryrefslogtreecommitdiff
path: root/tests/FileSystem_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FileSystem_test.cpp')
-rw-r--r--tests/FileSystem_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/FileSystem_test.cpp b/tests/FileSystem_test.cpp
index 3adcd343..e1941042 100644
--- a/tests/FileSystem_test.cpp
+++ b/tests/FileSystem_test.cpp
@@ -81,10 +81,10 @@ class LinkTask : public Task {
} else {
emitSucceeded();
}
- };
+ }
FS::create_link* m_lnk;
- bool m_useHard = false;
+ [[maybe_unused]] bool m_useHard = false;
bool m_linkRecursive = true;
};
@@ -361,7 +361,7 @@ class FileSystemTest : public QObject {
void test_link()
{
QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder");
- auto f = [&folder, this]() {
+ auto f = [&folder]() {
QTemporaryDir tempDir;
tempDir.setAutoRemove(true);
qDebug() << "From:" << folder << "To:" << tempDir.path();
@@ -630,7 +630,7 @@ class FileSystemTest : public QObject {
void test_link_with_max_depth()
{
QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder");
- auto f = [&folder, this]() {
+ auto f = [&folder]() {
QTemporaryDir tempDir;
tempDir.setAutoRemove(true);
qDebug() << "From:" << folder << "To:" << tempDir.path();