From 6ca6efb22aae2c80868c5d0d8f50b55505cfc0d6 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 21 Aug 2017 16:16:20 -0700 Subject: Fix unused variable warning when compiling in release mode with GCC 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: unused variable ‘ret’ [-Werror=unused-variable] Change-Id: I6e9274c1e7444ad48c81fffd14dcff9278d4376b Reviewed-by: Lars Knoll --- src/corelib/global/qrandom.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp index 0bbe79aeb4..9abb9ece7f 100644 --- a/src/corelib/global/qrandom.cpp +++ b/src/corelib/global/qrandom.cpp @@ -138,11 +138,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; } }; -- cgit v1.2.3