Task #819 - libplasma-6.1.1-1.fc41/scan-results.err

back to task #819
download
Error: COMPILER_WARNING (CWE-563):
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):
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:
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|       };