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>
This commit is contained in:
parent
e6fb36389e
commit
6ca6efb22a
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user