Hi,
qterm 0.8.2 there are some -Wunused-result warning when build on Debian sid
gcc-14 in buildlog:
/<<PKGBUILDDIR>>/src/main.cpp: In function ‘void sig_fatal_handler(int)’:
/<<PKGBUILDDIR>>/src/main.cpp:65:11: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
65 | chdir (QTERM_SIG_LOG_DIR);
| ~~~~~~^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/main.cpp:76:11: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
76 | write (fd, _buf, strlen (_buf));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
--
/<<PKGBUILDDIR>>/src/qtermframe.cpp: In member function ‘void QTerm::Frame::keyClicked(int)’:
/<<PKGBUILDDIR>>/src/qtermframe.cpp:821:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
821 | system((strTmp.mid(1) + " &").toLocal8Bit());
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
/<<PKGBUILDDIR>>/src/qtermglobal.cpp: In member function ‘void QTerm::Global::openUrl(const QString&)’:
/<<PKGBUILDDIR>>/src/qtermglobal.cpp:857:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
857 | system(command.toUtf8().data());
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
The whole buildlog can see in:
https://buildd.debian.org/status/fetch.php?pkg=qterm&arch=amd64&ver=1%3A0.8.2-1&stamp=1726766979&raw=0
Thanks!