Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
libplasma-6.0.3-build/libplasma-6.0.3/src/plasma/private/timetracker.cpp:46:14: warning[deadcode.DeadStores]: Value stored to 'b' during its initialization is never read
#   44|   
#   45|           QFile f(QStringLiteral("/tmp/debug-") + QString::fromUtf8(qgetenv("USER")) + QStringLiteral(".json"));
#   46|->         bool b = f.open(QFile::WriteOnly);
#   47|           Q_ASSERT(b);
#   48|           f.write(doc.toJson());

Error: COMPILER_WARNING (CWE-563): [#def2]
libplasma-6.0.3-build/libplasma-6.0.3/src/plasma/private/timetracker.cpp: scope_hint: In constructor ‘Plasma::TimeTracker::TimeTracker(QObject*)’
libplasma-6.0.3-build/libplasma-6.0.3/src/plasma/private/timetracker.cpp:75:18: warning[-Wunused-value]: value computed is not used
#   75 |     *s_beginning * 1; // ensure it's initialized
#      |     ~~~~~~~~~~~~~^~~
#   73|       : QObject(o)
#   74|   {
#   75|->     *s_beginning * 1; // ensure it's initialized
#   76|   
#   77|       QTimer *t = new QTimer(this);

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-228.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibplasma-6.1.1-1.fc41
diffbase-store-results-to/tmp/tmpytpmbdxp/libplasma-6.1.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 15:56:44
diffbase-time-finished2024-07-03 16:02:56
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpytpmbdxp/libplasma-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpytpmbdxp/libplasma-6.1.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-228.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibplasma-6.0.3-1.fc40
store-results-to/tmp/tmp6bbzmz0v/libplasma-6.0.3-1.fc40.tar.xz
time-created2024-07-03 15:49:53
time-finished2024-07-03 15:56:22
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6bbzmz0v/libplasma-6.0.3-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp6bbzmz0v/libplasma-6.0.3-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9