libplasma-6.1.1-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
libplasma-6.1.1-build/libplasma-6.1.1/src/plasma/pluginloader.cpp: scope_hint: In member function ‘Plasma::ContainmentActions* Plasma::PluginLoader::loadContainmentActions(Plasma::Containment*, const QString&, const QVariantList&)’
libplasma-6.1.1-build/libplasma-6.1.1/src/plasma/pluginloader.cpp:101:71: warning[-Wunused-parameter]: unused parameter ‘parent’
#  101 | ContainmentActions *PluginLoader::loadContainmentActions(Containment *parent, const QString &name, const QVariantList &args)
#      |                                                          ~~~~~~~~~~~~~^~~~~~
#   99|   }
#  100|   
#  101|-> ContainmentActions *PluginLoader::loadContainmentActions(Containment *parent, const QString &name, const QVariantList &args)
#  102|   {
#  103|       if (name.isEmpty()) {

Error: COMPILER_WARNING (CWE-563): [#def2]
libplasma-6.1.1-build/libplasma-6.1.1/src/plasma/pluginloader.cpp:101:120: warning[-Wunused-parameter]: unused parameter ‘args’
#  101 | ContainmentActions *PluginLoader::loadContainmentActions(Containment *parent, const QString &name, const QVariantList &args)
#      |                                                                                                    ~~~~~~~~~~~~~~~~~~~~^~~~
#   99|   }
#  100|   
#  101|-> ContainmentActions *PluginLoader::loadContainmentActions(Containment *parent, const QString &name, const QVariantList &args)
#  102|   {
#  103|       if (name.isEmpty()) {

Error: CLANG_WARNING: [#def3]
libplasma-6.1.1-build/libplasma-6.1.1/src/plasma/pluginloader.cpp:208:5: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
#  206|   QList<KPluginMetaData> PluginLoader::listContainmentsMetaData(std::function<bool(const KPluginMetaData &)> filter)
#  207|   {
#  208|->     auto ownFilter = [filter](const KPluginMetaData &md) -> bool {
#  209|           return isContainmentMetaData(md) && filter(md);
#  210|       };

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
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.1.1-1.fc41
store-results-to/tmp/tmpytpmbdxp/libplasma-6.1.1-1.fc41.tar.xz
time-created2024-07-03 15:56:44
time-finished2024-07-03 16:02:56
toolcsmock
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'
tool-versioncsmock-3.5.3-1.el9