Skip to content

Commit c8d1dcb

Browse files
zcbenzaduh95
authored andcommitted
crypto: fix warning of ignoring return value
PR-URL: #56527 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 323f96f commit c8d1dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/ncrypto/ncrypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ bool BignumPointer::generate(const PrimeConfig& params,
346346
PrimeCheckCallback innerCb) const {
347347
// BN_generate_prime_ex() calls RAND_bytes_ex() internally.
348348
// Make sure the CSPRNG is properly seeded.
349-
CSPRNG(nullptr, 0);
349+
std::ignore = CSPRNG(nullptr, 0);
350350
BignumGenCallbackPointer cb(nullptr);
351351
if (innerCb != nullptr) {
352352
cb = BignumGenCallbackPointer(BN_GENCB_new());

0 commit comments

Comments
 (0)