Skip to content

Commit f3d776b

Browse files
author
MarcoFalke
committed
Merge #19309: refactor: Fix link error with --enable-debug
b83cc0f Fix link error with --enable-debug (Hennadii Stepanov) Pull request description: Fixes a link error on master (39bd9dd): ``` $ ./configure --enable-debug $ make ... bitcoin_wallet-bitcoin-wallet.o:(.data.rel.ro+0x0): undefined reference to `InitError(bilingual_str const&)' libbitcoin_wallet_tool.a(libbitcoin_wallet_tool_a-wallettool.o):(.data.rel.ro+0x8): undefined reference to `InitError(bilingual_str const&)' libbitcoin_wallet.a(libbitcoin_wallet_a-salvage.o):(.data.rel.ro+0x8): undefined reference to `InitError(bilingual_str const&)' libbitcoin_wallet.a(libbitcoin_wallet_a-wallet.o):(.data.rel.ro+0x8): undefined reference to `InitError(bilingual_str const&)' libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o):(.data.rel.ro+0x8): undefined reference to `InitError(bilingual_str const&)' libbitcoin_wallet.a(libbitcoin_wallet_a-wallet.o):(.data.rel.ro+0x8): more undefined references to `InitError(bilingual_str const&)' follow collect2: error: ld returned 1 exit status ``` See: - bitcoin/bitcoin#19295 (comment) - bitcoin/bitcoin#19295 (comment) ACKs for top commit: achow101: Re-ACK b83cc0f Tree-SHA512: f563d978b6725284049449bb0b3a184d356f32e9b63bcadb0ba71352d3d521af3dbb4a7b4fc0a5a620ed99c357e59f62249c10d0defc0cbe7775f2c06791dabe
2 parents 6dc1b45 + b83cc0f commit f3d776b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void InitWarning(const bilingual_str& str);
122122

123123
/** Show error message **/
124124
bool InitError(const bilingual_str& str);
125-
constexpr auto AbortError = InitError;
125+
inline bool AbortError(const bilingual_str& str) { return InitError(str); }
126126

127127
extern CClientUIInterface uiInterface;
128128

0 commit comments

Comments
 (0)