[Debian-zh-dev] Bug#1082327: -Wunused-result warning: ignoring return value in buildlog
xiao sheng wen
atzlinux at sina.com
Fri Sep 20 03:07:59 BST 2024
Source: qterm
Version: 1:0.8.2-1
Severity: minor
Tags: upstream
X-Debbugs-Cc: Xiaoqiang Wang <xiaoqiangwang at gmail.com>, atzlinux at sina.com
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!
-- System Information:
Release: 12.7.1
Codename: bookworm
Architecture: x86_64
Kernel: Linux 6.10.9-rt-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=zh_CN:zh
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-- no debconf information
More information about the Chinese-developers
mailing list