summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Nolden <nolden@kde.org>2016-05-22 15:04:01 +0200
committerRalf Nolden <nolden@kde.org>2016-05-23 09:51:30 +0000
commitf8c3820de789a2c08dab2ddb7bf18728cdbd7028 (patch)
treec7afefc33323319196a28570f45069fe5e5fa8ef
parent725a9c27021bef1ac3828a4eafc013a2f50e6f22 (diff)
Compile fix: remove unused variable bool isEmpty
The local variable isEmpty triggers a compile warning with GCC: variable ‘isEmpty’ set but not used [-Werror=unused-but-set-variable], so remove the variable assignment and declaration. Error is triggered on FreeBSD and NetBSD with gcc. Change-Id: I37bdb3408ad69093708f2d4bdb04392da66e04e5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/corelib/io/qfilesystemwatcher_kqueue.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_kqueue.cpp b/src/corelib/io/qfilesystemwatcher_kqueue.cpp
index 80cbcb26cc..9b574cbdfb 100644
--- a/src/corelib/io/qfilesystemwatcher_kqueue.cpp
+++ b/src/corelib/io/qfilesystemwatcher_kqueue.cpp
@@ -166,7 +166,6 @@ QStringList QKqueueFileSystemWatcherEngine::removePaths(const QStringList &paths
QStringList *files,
QStringList *directories)
{
- bool isEmpty;
QStringList p = paths;
if (pathToID.isEmpty())
return p;
@@ -187,7 +186,6 @@ QStringList QKqueueFileSystemWatcherEngine::removePaths(const QStringList &paths
else
files->removeAll(path);
}
- isEmpty = pathToID.isEmpty();
return p;
}