mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
fuzz: Remove unused g_setup pointers
These are unused and removing them avoids clang warnings like: src/test/fuzz/deserialize.cpp:42:26: error: variable g_setup set but not used [-Werror,-Wunused-but-set-variable]
This commit is contained in:
parent
1907b3f56c
commit
ea8fafd2bf
2 changed files with 1 additions and 8 deletions
|
|
@ -36,18 +36,13 @@
|
|||
|
||||
using node::SnapshotMetadata;
|
||||
|
||||
namespace {
|
||||
const BasicTestingSetup* g_setup;
|
||||
} // namespace
|
||||
|
||||
void initialize_deserialize()
|
||||
{
|
||||
static const auto testing_setup = MakeNoLogFileContext<>();
|
||||
g_setup = testing_setup.get();
|
||||
}
|
||||
|
||||
#define FUZZ_TARGET_DESERIALIZE(name, code) \
|
||||
FUZZ_TARGET(name, .init = initialize_deserialize) \
|
||||
FUZZ_TARGET(name, .init = initialize_deserialize) \
|
||||
{ \
|
||||
try { \
|
||||
code \
|
||||
|
|
|
|||
|
|
@ -11,11 +11,9 @@
|
|||
namespace wallet {
|
||||
namespace {
|
||||
|
||||
const TestingSetup* g_setup;
|
||||
void initialize_crypter()
|
||||
{
|
||||
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
|
||||
g_setup = testing_setup.get();
|
||||
}
|
||||
|
||||
FUZZ_TARGET(crypter, .init = initialize_crypter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue