Commit 66b610ad authored by Tom Zander's avatar Tom Zander

Fix compile of tests without wallet

parent ef279e6b
Pipeline #36495453 passed with stages
in 24 minutes and 32 seconds
......@@ -55,8 +55,6 @@ endif ()
option(enable_wallet "Compile the legacy wallet" OFF)
if (enable_wallet)
add_definitions(-DENABLE_WALLET)
# remove warnings from berkley-db
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated ")
endif ()
option(dev_setup "Enable developer build, not safe for real-life usage!" OFF)
......@@ -284,7 +282,8 @@ execute_process(
)
add_definitions(-DHAVE_CONFIG_H -DHAVE_BUILD_INFO)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wvla -pthread")
# no-deprecated is needed for dbwrapper (leveldb)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wvla -pthread -Wno-deprecated ")
add_subdirectory(libs)
add_subdirectory(hub)
......
......@@ -22,6 +22,9 @@
#include "MockApplication.h"
#include <Application.h>
#include <utxo/UnspentOutputDatabase.h>
#include <BlocksDB.h>
#include <interfaces/validationinterface.h>
#include <UiInterface.h>
#include <main.h>
#ifdef ENABLE_WALLET
# include <wallet/wallet.h>
......
......@@ -29,6 +29,8 @@
#include <interfaces/validationinterface.h>
#include <utxo/UnspentOutputDatabase.h>
#include <script/sigcache.h>
#include <utils/util.h>
#include <BlocksDB.h>
#ifdef ENABLE_WALLET
# include <wallet/wallet.h>
CWallet* pwalletMain;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment