Skip to content

Commit

Permalink
refactor: remove in-code warning suppression
Browse files Browse the repository at this point in the history
Should no-longer be needed post bitcoin#27872. If it is, then
suppress-external-warnings should be fixed.
  • Loading branch information
fanquake committed Jun 29, 2023
1 parent c6287fa commit 3210f22
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
9 changes: 0 additions & 9 deletions src/common/run_command.cpp
Expand Up @@ -12,16 +12,7 @@
#include <univalue.h>

#ifdef ENABLE_EXTERNAL_SIGNER
#if defined(__GNUC__)
// Boost 1.78 requires the following workaround.
// See: https://github.com/boostorg/process/issues/235
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnarrowing"
#endif
#include <boost/process.hpp>
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif // ENABLE_EXTERNAL_SIGNER

UniValue RunCommandParseJSON(const std::string& str_command, const std::string& str_std_in)
Expand Down
9 changes: 0 additions & 9 deletions src/test/system_tests.cpp
Expand Up @@ -7,16 +7,7 @@
#include <univalue.h>

#ifdef ENABLE_EXTERNAL_SIGNER
#if defined(__GNUC__)
// Boost 1.78 requires the following workaround.
// See: https://github.com/boostorg/process/issues/235
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnarrowing"
#endif
#include <boost/process.hpp>
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif // ENABLE_EXTERNAL_SIGNER

#include <boost/test/unit_test.hpp>
Expand Down
7 changes: 0 additions & 7 deletions src/wallet/bdb.h
Expand Up @@ -21,14 +21,7 @@
#include <unordered_map>
#include <vector>

#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
#include <db_cxx.h>
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif

struct bilingual_str;

Expand Down

0 comments on commit 3210f22

Please sign in to comment.