diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-10-21 09:07:27 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-10-21 23:34:11 +0200 |
commit | 8a4f252644b0729491bca42abe0ba88862136cfc (patch) | |
tree | c22fb41f83284a1c26151c6b01136ca8331fe12d | |
parent | ab1904363a87656b4ddec77ee9978082a25dadcd (diff) |
Avoid warnings when compiling bootstrap library without zstd
Change-Id: Ic67cd2b582df0464a17f6181157ebbd47986114c
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
-rw-r--r-- | src/corelib/io/qresource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 7a2321f950..54fe21c43c 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -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: |