diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-04-11 10:05:49 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-04-11 10:19:44 +0200 |
commit | 12e7c558afb1ddd127229029ef0770184d786927 (patch) | |
tree | 6bde160c1a3702a8fd23ae65722690f98af87046 /src/bitcoind.cpp | |
parent | 0a8054e7cd5c76d01e4ac7234e3883d05f6f5fdd (diff) |
Ignore macOS daemon() depracation warning
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r-- | src/bitcoind.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 4aa811b86b..83d9719df2 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -139,6 +139,10 @@ bool AppInit(int argc, char* argv[]) if (gArgs.GetBoolArg("-daemon", false)) { #if HAVE_DECL_DAEMON +#if defined(MAC_OSX) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif fprintf(stdout, "Bitcoin server starting\n"); // Daemonize @@ -146,6 +150,9 @@ bool AppInit(int argc, char* argv[]) fprintf(stderr, "Error: daemon() failed: %s\n", strerror(errno)); return false; } +#if defined(MAC_OSX) +#pragma GCC diagnostic pop +#endif #else fprintf(stderr, "Error: -daemon is not supported on this operating system\n"); return false; |