diff --git a/src/corelib/codecs/qiconvcodec.cpp b/src/corelib/codecs/qiconvcodec.cpp index bf4e8f26f31..5a1ba51f656 100644 --- a/src/corelib/codecs/qiconvcodec.cpp +++ b/src/corelib/codecs/qiconvcodec.cpp @@ -323,6 +323,8 @@ static bool setByteOrder(iconv_t cd) if (iconv(cd, inBytesPtr, &inBytesLeft, &outBytes, &outBytesLeft) == (size_t) -1) { return false; } +#else + Q_UNUSED(cd); #endif // NO_BOM return true;