summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-04-27 16:29:27 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-04-28 08:45:11 (GMT)
commit5e5485809e8c6f8339bb9f19ad71ed623a8b23c7 (patch)
tree7366d94a5ba6d0d56cb0074d411ac571ce8081da /src/corelib/io
parentddd253e14318af45e5c56df736028b88257068c4 (diff)
downloadQt-5e5485809e8c6f8339bb9f19ad71ed623a8b23c7.zip
Qt-5e5485809e8c6f8339bb9f19ad71ed623a8b23c7.tar.gz
Qt-5e5485809e8c6f8339bb9f19ad71ed623a8b23c7.tar.bz2
Fixes warnings
In QString, it would comlain that: assuming signed overflow does not occur when assuming that (X - c) > X is always false Changing to unsigned comparison fix the warning Others are about unused variables Reviewed-by: Thiago
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qfilesystemengine_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp
index c9ebaa4..742b05e 100644
--- a/src/corelib/io/qfilesystemengine_unix.cpp
+++ b/src/corelib/io/qfilesystemengine_unix.cpp
@@ -356,6 +356,7 @@ bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemM
const QByteArray &path = entry.nativeFilePath();
nativeFilePath = path.constData();
nativeFilePathLength = path.size();
+ Q_UNUSED(nativeFilePathLength);
}
bool entryExists = true; // innocent until proven otherwise