Skip to content

Commit 3210f22

Browse files
committed
refactor: remove in-code warning suppression
Should no-longer be needed post #27872. If it is, then suppress-external-warnings should be fixed.
1 parent c6287fa commit 3210f22

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

src/common/run_command.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@
1212
#include <univalue.h>
1313

1414
#ifdef ENABLE_EXTERNAL_SIGNER
15-
#if defined(__GNUC__)
16-
// Boost 1.78 requires the following workaround.
17-
// See: https://github.com/boostorg/process/issues/235
18-
#pragma GCC diagnostic push
19-
#pragma GCC diagnostic ignored "-Wnarrowing"
20-
#endif
2115
#include <boost/process.hpp>
22-
#if defined(__GNUC__)
23-
#pragma GCC diagnostic pop
24-
#endif
2516
#endif // ENABLE_EXTERNAL_SIGNER
2617

2718
UniValue RunCommandParseJSON(const std::string& str_command, const std::string& str_std_in)

src/test/system_tests.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@
77
#include <univalue.h>
88

99
#ifdef ENABLE_EXTERNAL_SIGNER
10-
#if defined(__GNUC__)
11-
// Boost 1.78 requires the following workaround.
12-
// See: https://github.com/boostorg/process/issues/235
13-
#pragma GCC diagnostic push
14-
#pragma GCC diagnostic ignored "-Wnarrowing"
15-
#endif
1610
#include <boost/process.hpp>
17-
#if defined(__GNUC__)
18-
#pragma GCC diagnostic pop
19-
#endif
2011
#endif // ENABLE_EXTERNAL_SIGNER
2112

2213
#include <boost/test/unit_test.hpp>

src/wallet/bdb.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@
2121
#include <unordered_map>
2222
#include <vector>
2323

24-
#if defined(__GNUC__) && !defined(__clang__)
25-
#pragma GCC diagnostic push
26-
#pragma GCC diagnostic ignored "-Wsuggest-override"
27-
#endif
2824
#include <db_cxx.h>
29-
#if defined(__GNUC__) && !defined(__clang__)
30-
#pragma GCC diagnostic pop
31-
#endif
3225

3326
struct bilingual_str;
3427

0 commit comments

Comments
 (0)