We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8054e commit 12e7c55Copy full SHA for 12e7c55
src/bitcoind.cpp
@@ -139,13 +139,20 @@ bool AppInit(int argc, char* argv[])
139
if (gArgs.GetBoolArg("-daemon", false))
140
{
141
#if HAVE_DECL_DAEMON
142
+#if defined(MAC_OSX)
143
+#pragma GCC diagnostic push
144
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
145
+#endif
146
fprintf(stdout, "Bitcoin server starting\n");
147
148
// Daemonize
149
if (daemon(1, 0)) { // don't chdir (1), do close FDs (0)
150
fprintf(stderr, "Error: daemon() failed: %s\n", strerror(errno));
151
return false;
152
}
153
154
+#pragma GCC diagnostic pop
155
156
#else
157
fprintf(stderr, "Error: -daemon is not supported on this operating system\n");
158
0 commit comments