summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-08-16 11:27:35 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-08-16 10:38:38 +0000
commit37f82b8a97b547d80a13a02734f44f1b44aced57 (patch)
tree658d7ce5b17e65886c4704908b8ed735987e35a7 /src/corelib/io
parent1291e8d09404716b5ade2ac283f8f30efba93187 (diff)
Fix qmake build in developer builds
When building with developer builds, all targets are built with warnings as errors. In CMake this also applies to the qmake build. Change-Id: Ie62681d6c4756c106f5931a2a7d452a18dfa45f1 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qfilesystemiterator_unix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/qfilesystemiterator_unix.cpp b/src/corelib/io/qfilesystemiterator_unix.cpp
index 2d09c277eb..7194a2faf7 100644
--- a/src/corelib/io/qfilesystemiterator_unix.cpp
+++ b/src/corelib/io/qfilesystemiterator_unix.cpp
@@ -83,6 +83,8 @@ static bool checkNameDecodable(const char *d_name, qsizetype len)
codec->toUnicode(d_name, len, &cs);
return cs.invalidChars == 0 && cs.remainingChars == 0;
#else
+ Q_UNUSED(d_name);
+ Q_UNUSED(len);
// if we have no text codecs, then QString::fromLocal8Bit is fromLatin1
return true;
#endif