Error: COMPILER_WARNING (CWE-252): [#def1] sonnet-6.22.0/data/parsetrigrams.cpp: scope_hint: In function ‘int main(int, char**)’ sonnet-6.22.0/data/parsetrigrams.cpp:28:14: warning[-Wunused-result]: ignoring return value of ‘bool QFile::open(FILE*, QIODeviceBase::OpenMode, QFileDevice::FileHandleFlags)’, declared with attribute ‘nodiscard’ # 28 | sout.open(stdout, QIODevice::WriteOnly); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qdir.h:11: included_from: Included from here. /usr/include/qt6/QtCore/QDir:1: included_from: Included from here. sonnet-6.22.0/data/parsetrigrams.cpp:14: included_from: Included from here. /usr/include/qt6/QtCore/qfile.h:293:32: note: declared here # 293 | QFILE_MAYBE_NODISCARD bool open(FILE *f, OpenMode ioFlags, FileHandleFlags handleFlags=DontCloseHandle); # | ^~~~ # 26| # 27| QFile sout; # 28|-> sout.open(stdout, QIODevice::WriteOnly); # 29| QDataStream out(&sout); # 30| Error: COMPILER_WARNING (CWE-252): [#def2] sonnet-6.22.0/data/parsetrigrams.cpp:44:17: warning[-Wunused-result]: ignoring return value of ‘virtual bool QFile::open(QIODeviceBase::OpenMode)’, declared with attribute ‘nodiscard’ # 44 | fin.open(QFile::ReadOnly | QFile::Text); # | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qfile.h:291:32: note: declared here # 291 | QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override; # | ^~~~ # 42| for (const QString &fname : files) { # 43| QFile fin(td.filePath(fname)); # 44|-> fin.open(QFile::ReadOnly | QFile::Text); # 45| QTextStream stream(&fin); # 46|
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-114.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | kf6-sonnet-6.22.0-1.fc44 |
| store-results-to | /tmp/tmpbqqfhnyv/kf6-sonnet-6.22.0-1.fc44.tar.xz |
| time-created | 2026-01-08 18:15:48 |
| time-finished | 2026-01-08 18:18:51 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpbqqfhnyv/kf6-sonnet-6.22.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbqqfhnyv/kf6-sonnet-6.22.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |