Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kpackage-6.0.0-build/kpackage-6.0.0/src/kpackage/packagejob.cpp: scope_hint: In lambda function
kf6-kpackage-6.0.0-build/kpackage-6.0.0/src/kpackage/packagejob.cpp:167:26: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  167 |     auto onJobFinished = [=](bool ok, JobError errorCode, const QString &error) {
#      |                          ^
kf6-kpackage-6.0.0-build/kpackage-6.0.0/src/kpackage/packagejob.cpp:167:26: note: add explicit ‘this’ or ‘*this’ capture
#  165|       const QString kpackageType = readKPackageType(d->package.metadata());
#  166|   
#  167|->     auto onJobFinished = [=](bool ok, JobError errorCode, const QString &error) {
#  168|           if (ok) {
#  169|               auto msg = QDBusMessage::createSignal(QStringLiteral("/KPackage/") + kpackageType, QStringLiteral("org.kde.plasma.kpackage"), messageName);

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-36.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekf6-kpackage-6.3.0-1.fc41
diffbase-store-results-to/tmp/tmpyvaumtzv/kf6-kpackage-6.3.0-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:11:28
diffbase-time-finished2024-07-03 14:12:59
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyvaumtzv/kf6-kpackage-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpyvaumtzv/kf6-kpackage-6.3.0-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-36.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kpackage-6.0.0-1.fc40
store-results-to/tmp/tmpewgl80gf/kf6-kpackage-6.0.0-1.fc40.tar.xz
time-created2024-07-03 14:09:05
time-finished2024-07-03 14:11:02
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpewgl80gf/kf6-kpackage-6.0.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpewgl80gf/kf6-kpackage-6.0.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9