mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Ignore macOS daemon() depracation warning
This commit is contained in:
parent
0a8054e7cd
commit
12e7c558af
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user