Avoid warnings when compiling bootstrap library without zstd

Change-Id: Ic67cd2b582df0464a17f6181157ebbd47986114c
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Ulf Hermann 2021-10-21 09:07:27 +02:00
parent ab1904363a
commit 8a4f252644

View File

@ -470,6 +470,10 @@ qint64 QResourcePrivate::uncompressedSize() const
qsizetype QResourcePrivate::decompress(char *buffer, qsizetype bufferSize) const
{
Q_ASSERT(data);
#if defined(QT_NO_COMPRESS) && !QT_CONFIG(zstd)
Q_UNUSED(buffer);
Q_UNUSED(bufferSize);
#endif
switch (compressionAlgo) {
case QResource::NoCompression: