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>
This commit is contained in:
parent
725a9c2702
commit
f8c3820de7
@ -166,7 +166,6 @@ QStringList QKqueueFileSystemWatcherEngine::removePaths(const QStringList &paths
|
|||||||
QStringList *files,
|
QStringList *files,
|
||||||
QStringList *directories)
|
QStringList *directories)
|
||||||
{
|
{
|
||||||
bool isEmpty;
|
|
||||||
QStringList p = paths;
|
QStringList p = paths;
|
||||||
if (pathToID.isEmpty())
|
if (pathToID.isEmpty())
|
||||||
return p;
|
return p;
|
||||||
@ -187,7 +186,6 @@ QStringList QKqueueFileSystemWatcherEngine::removePaths(const QStringList &paths
|
|||||||
else
|
else
|
||||||
files->removeAll(path);
|
files->removeAll(path);
|
||||||
}
|
}
|
||||||
isEmpty = pathToID.isEmpty();
|
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user