summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-08-21 16:16:20 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-11-03 01:12:44 +0000
commit6ca6efb22aae2c80868c5d0d8f50b55505cfc0d6 (patch)
tree4af46573cdfa506b9064f6a11e94234ab8bddc33 /src/corelib/global
parente6fb36389e7f69e852c10c79d0af72f85ade300b (diff)
Fix unused variable warning when compiling in release mode with GCC 7
error: unused variable ‘ret’ [-Werror=unused-variable] Change-Id: I6e9274c1e7444ad48c81fffd14dcff9278d4376b Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qrandom.cpp2
1 files changed, 2 insertions, 0 deletions
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<uchar *>(buffer) + read, 256);
Q_ASSERT(ret == 0);
+ Q_UNUSED(ret);
read += 256;
}
int ret = getentropy(reinterpret_cast<uchar *>(buffer) + read, count - read);
Q_ASSERT(ret == 0);
+ Q_UNUSED(ret);
return count;
}
};