F4FXL/DStarGateway

Fails build on Ubuntu without ENABLE_DEBUG

Closed this issue · 2 comments

Daemon.cpp: In static member function ‘static DAEMONIZE_RESULT CDaemon::daemonise(const string&, const string&)’:
Daemon.cpp:172:22: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
172 | write(m_pid_fd, str, strlen(str));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:9: Daemon.o] Error 1

Thanks for reporting this issue. What branch/tag are you trying to build?
What version of Ubuntu are you running?

Might also be related to : https://groups.io/g/OpenDV/message/1854