fix Warning

This commit is contained in:
berrux-dev committed 2026-10-03 09:20:13 +02:00
1 parent 593c221d23
commit 8345470273
316 files changed
+1246 -929

No files matched your search

@@ -54,9 +54,12 @@ static void daemonize()
exit(EXIT_FAILURE);
/* Redirect standard files to /dev/null */
freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
(void)freopen("/dev/null", "r", stdin);
(void)freopen("/dev/null", "w", stdout);
(void)freopen("/dev/null", "w", stderr);
#pragma GCC diagnostic pop
#endif
}