HomePhabricator

Fix a compiler warning: unused GetDevURandom()

Description

Fix a compiler warning: unused GetDevURandom()

Summary:

random.cpp:255:13: error: unused function 'GetDevURandom' [-Werror,-Wunused-function]

Clang 9.0.0, FreeBSD 12.1

Silence by planting a dummy reference to the GetDevURandom symbol
in the places where we don't call the function.

We see the same warnings in our CI logs.

This is a backport of core#17563

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10090

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Sep 14 2021, 13:02
PiRKCommitted on Sep 15 2021, 06:17
PiRKPushed on Sep 15 2021, 06:17
Reviewer
Restricted Project
Differential Revision
D10090: Fix a compiler warning: unused GetDevURandom()
Parents
rABC53e80d9b2ea5: Cleanup Bitcoin Cash user agents in seeder tests
Branches
Unknown
Tags
Unknown