Task #1518 - kscreenlocker-6.0.3-1.fc40/scan-results.err

back to task #1518
download
Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/globalaccel.cpp:93:27: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#   91|       // go through all components, check whether they are in our whitelist
#   92|       // if they are whitelisted we check whether they are active
#   93|->     for (const auto &path : reply.value()) {
#   94|           const QString objectPath = path.path();
#   95|           bool whitelisted = false;

Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/globalaccel.cpp:145:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#  143|                   m_shortcuts.insert(objectPath, infos);
#  144|               });
#  145|->         });
#  146|       }
#  147|       m_updatingInformation--;

Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/greeter/pamauthenticator.cpp:176:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  174|   
#  175|       if (rc == PAM_SUCCESS) {
#  176|->         rc = pam_setcred(m_handle, PAM_REFRESH_CRED);
#  177|           /* ignore errors on refresh credentials. If this did not work we use the old ones. */
#  178|           Q_EMIT succeeded();

Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/greeter/powermanagement.cpp:75:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#   73|           ((this)->*setter)(reply.value());
#   74|       });
#   75|-> }
#   76|   
#   77|   void PowerManagement::Private::setCanHibernate(bool set)

Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/logind.cpp:99:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'watcher'
#   97|   
#   98|       commonServiceRegistered(watcher);
#   99|-> }
#  100|   
#  101|   void LogindIntegration::consolekitServiceRegistered()

Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/logind.cpp:120:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'watcher'
#  118|   
#  119|       commonServiceRegistered(watcher);
#  120|-> }
#  121|   
#  122|   void LogindIntegration::commonServiceRegistered(QDBusPendingCallWatcher *watcher)

Error: CLANG_WARNING:
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/powermanagement_inhibition.cpp:96:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#   94|           m_inhibited = reply.value();
#   95|       });
#   96|-> }
#   97|   
#   98|   #include "moc_powermanagement_inhibition.cpp"

Error: COMPILER_WARNING (CWE-909):
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/waylandserver.cpp:139:5: warning[-Wmissing-field-initializers]: missing initializer for member ‘org_kde_ksld_interface::hibernateSystem’
#  137|                   }
#  138|               },
#  139|->     };
#  140|   
#  141|       wl_resource_set_implementation(resource, &s_interface, server, nullptr);

Error: COMPILER_WARNING (CWE-909):
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/waylandserver.cpp: scope_hint: In static member function ‘static void ScreenLocker::WaylandServer::bind(wl_client*, void*, uint32_t, uint32_t)’
kscreenlocker-6.0.3-build/kscreenlocker-6.0.3/waylandserver.cpp:139:5: warning[-Wmissing-field-initializers]: missing initializer for member ‘org_kde_ksld_interface::suspendSystem’
#  139 |     };
#      |     ^
#  137|                   }
#  138|               },
#  139|->     };
#  140|   
#  141|       wl_resource_set_implementation(resource, &s_interface, server, nullptr);