kscreen-6.5.4-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
kscreen-6.5.4/console/console.cpp: scope_hint: In member function ‘void Console::printSerializations()’
kscreen-6.5.4/console/console.cpp:136:18: warning[-Wunused-result]: ignoring return value of ‘virtual bool QFile::open(QIODeviceBase::OpenMode)’, declared with attribute ‘nodiscard’
#  136 |         file.open(QFile::ReadOnly);
#      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qdir.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/QDir:1: included_from: Included from here.
kscreen-6.5.4/console/console.cpp:11: included_from: Included from here.
/usr/include/qt6/QtCore/qfile.h:291:32: note: declared here
#  291 |     QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override;
#      |                                ^~~~
#  134|       if (KWindowSystem::isPlatformWayland()) {
#  135|           QFile file(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QLatin1String("/kwinoutputconfig.json"));
#  136|->         file.open(QFile::ReadOnly);
#  137|           qDebug().noquote() << file.readAll();
#  138|       } else {

Error: COMPILER_WARNING (CWE-252): [#def2]
kscreen-6.5.4/console/console.cpp:151:22: warning[-Wunused-result]: ignoring return value of ‘virtual bool QFile::open(QIODeviceBase::OpenMode)’, declared with attribute ‘nodiscard’
#  151 |             file.open(QFile::ReadOnly);
#      |             ~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qfile.h:291:32: note: declared here
#  291 |     QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override;
#      |                                ^~~~
#  149|               qDebug() << fileName;
#  150|               QFile file(path + QLatin1Char('/') + fileName);
#  151|->             file.open(QFile::ReadOnly);
#  152|               QJsonDocument parser = QJsonDocument::fromJson(file.readAll(), &error);
#  153|               if (error.error != QJsonParseError::NoError) {

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-91.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekscreen-6.5.4-1.fc44
store-results-to/tmp/tmpikvsid27/kscreen-6.5.4-1.fc44.tar.xz
time-created2026-01-08 18:37:13
time-finished2026-01-08 18:39:35
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpikvsid27/kscreen-6.5.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpikvsid27/kscreen-6.5.4-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9