From 37f82b8a97b547d80a13a02734f44f1b44aced57 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Fri, 16 Aug 2019 11:27:35 +0200 Subject: 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 --- src/corelib/io/qfilesystemiterator_unix.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3