diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp index 2247394363..22d23ae6fa 100644 --- a/src/corelib/global/qrandom.cpp +++ b/src/corelib/global/qrandom.cpp @@ -139,11 +139,13 @@ public: // getentropy can't fail under normal circumstances int ret = getentropy(reinterpret_cast(buffer) + read, 256); Q_ASSERT(ret == 0); + Q_UNUSED(ret); read += 256; } int ret = getentropy(reinterpret_cast(buffer) + read, count - read); Q_ASSERT(ret == 0); + Q_UNUSED(ret); return count; } };