kf6-kio-6.0.0-5.fc40

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/chmodjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/chmodjob.cpp:209:71: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  209 |                     q->connect(askUserActionInterface, skipSignal, q, [=](KIO::SkipDialog_Result result, KJob *parentJob) {
#      |                                                                       ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/chmodjob.cpp:209:71: note: add explicit ‘this’ or ‘*this’ capture
#  207|   
#  208|                       auto skipSignal = &AskUserActionInterface::askUserSkipResult;
#  209|->                     q->connect(askUserActionInterface, skipSignal, q, [=](KIO::SkipDialog_Result result, KJob *parentJob) {
#  210|                           Q_ASSERT(q == parentJob);
#  211|                           q->disconnect(askUserActionInterface, skipSignal, q, nullptr);

Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1329:63: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1329 |     QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
#      |                                                               ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1329:63: note: add explicit ‘this’ or ‘*this’ capture
# 1327|   
# 1328|       auto renameSignal = &KIO::AskUserActionInterface::askUserRenameResult;
# 1329|->     QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# 1330|           Q_ASSERT(parentJob == q);
# 1331|           // Only receive askUserRenameResult once per rename dialog

Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1437:81: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1437 |                         QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
#      |                                                                                 ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1437:81: note: add explicit ‘this’ or ‘*this’ capture
# 1435|   
# 1436|                           auto skipSignal = &KIO::AskUserActionInterface::askUserSkipResult;
# 1437|->                         QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# 1438|                               Q_ASSERT(parentJob == q);
# 1439|   

Error: COMPILER_WARNING (CWE-477): [#def4]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1712:71: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1712 |             QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
#      |                                                                       ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1712:71: note: add explicit ‘this’ or ‘*this’ capture
# 1710|   
# 1711|               auto renameSignal = &KIO::AskUserActionInterface::askUserRenameResult;
# 1712|->             QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# 1713|                   Q_ASSERT(parentJob == q);
# 1714|                   // Only receive askUserRenameResult once per rename dialog

Error: COMPILER_WARNING (CWE-477): [#def5]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1741:69: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1741 |             QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
#      |                                                                     ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1741:69: note: add explicit ‘this’ or ‘*this’ capture
# 1739|   
# 1740|               auto skipSignal = &KIO::AskUserActionInterface::askUserSkipResult;
# 1741|->             QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# 1742|                   Q_ASSERT(parentJob == q);
# 1743|                   // Only receive askUserSkipResult once per skip dialog

Error: COMPILER_WARNING (CWE-477): [#def6]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1928:69: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1928 |             QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
#      |                                                                     ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1928:69: note: add explicit ‘this’ or ‘*this’ capture
# 1926|   
# 1927|               auto skipSignal = &KIO::AskUserActionInterface::askUserSkipResult;
# 1928|->             QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# 1929|                   Q_ASSERT(parentJob == q);
# 1930|                   // Only receive askUserSkipResult once per skip dialog

Error: COMPILER_WARNING (CWE-477): [#def7]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:2385:79: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2385 |                     QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
#      |                                                                               ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:2385:79: note: add explicit ‘this’ or ‘*this’ capture
# 2383|                   } else {
# 2384|                       auto renameSignal = &KIO::AskUserActionInterface::askUserRenameResult;
# 2385|->                     QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# 2386|                           Q_ASSERT(parentJob == q);
# 2387|                           // Only receive askUserRenameResult once per rename dialog

Error: COMPILER_WARNING (CWE-477): [#def8]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:197:75: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  197 |         QObject::connect(m_ioworker, &DeleteJobIOWorker::rmfileResult, q, [=](bool result, bool isLink) {
#      |                                                                           ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:197:75: note: add explicit ‘this’ or ‘*this’ capture
#  195|           m_ioworker->moveToThread(m_thread);
#  196|           QObject::connect(m_thread, &QThread::finished, m_ioworker, &QObject::deleteLater);
#  197|->         QObject::connect(m_ioworker, &DeleteJobIOWorker::rmfileResult, q, [=](bool result, bool isLink) {
#  198|               this->rmFileResult(result, isLink);
#  199|           });

Error: COMPILER_WARNING (CWE-477): [#def9]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:200:75: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  200 |         QObject::connect(m_ioworker, &DeleteJobIOWorker::rmddirResult, q, [=](bool result) {
#      |                                                                           ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:200:75: note: add explicit ‘this’ or ‘*this’ capture
#  198|               this->rmFileResult(result, isLink);
#  199|           });
#  200|->         QObject::connect(m_ioworker, &DeleteJobIOWorker::rmddirResult, q, [=](bool result) {
#  201|               this->rmdirResult(result);
#  202|           });

Error: COMPILER_WARNING (CWE-477): [#def10]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/filecopyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/filecopyjob.cpp:362:69: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  362 |                 q->connect(askUserActionInterface, renameSignal, q, [=](KIO::RenameDialog_Result result, const QUrl &, const KJob *askJob) {
#      |                                                                     ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/filecopyjob.cpp:362:69: note: add explicit ‘this’ or ‘*this’ capture
#  360|                   auto renameSignal = &AskUserActionInterface::askUserRenameResult;
#  361|   
#  362|->                 q->connect(askUserActionInterface, renameSignal, q, [=](KIO::RenameDialog_Result result, const QUrl &, const KJob *askJob) {
#  363|                       Q_ASSERT(kioJob == askJob);
#  364|   

Error: COMPILER_WARNING (CWE-477): [#def11]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:133:45: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  133 |     QObject::connect(job, &KJob::result, q, [=]() {
#      |                                             ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:133:45: note: add explicit ‘this’ or ‘*this’ capture
#  131|       job->setUiDelegate(nullptr);
#  132|       q->addSubjob(job);
#  133|->     QObject::connect(job, &KJob::result, q, [=]() {
#  134|           const int errCode = job->error();
#  135|           if (errCode) {

Error: COMPILER_WARNING (CWE-477): [#def12]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:210:45: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  210 |     QObject::connect(job, &KJob::result, q, [=]() {
#      |                                             ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:210:45: note: add explicit ‘this’ or ‘*this’ capture
#  208|       job->setUiDelegate(nullptr);
#  209|       q->addSubjob(job);
#  210|->     QObject::connect(job, &KJob::result, q, [=]() {
#  211|           const int errCode = job->error();
#  212|           if (errCode) {

Error: COMPILER_WARNING (CWE-477): [#def13]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:229:64: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  229 |     QObject::connect(job, &KIO::TransferJob::mimeTypeFound, q, [=](KIO::Job *, const QString &mimetype) {
#      |                                                                ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:229:64: note: add explicit ‘this’ or ‘*this’ capture
#  227|           }
#  228|       });
#  229|->     QObject::connect(job, &KIO::TransferJob::mimeTypeFound, q, [=](KIO::Job *, const QString &mimetype) {
#  230|           if (m_followRedirections) { // Update our URL in case of a redirection
#  231|               m_url = job->url();

Error: COMPILER_WARNING (CWE-563): [#def14]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/kfileplacesview.cpp: scope_hint: In member function ‘int KFilePlacesViewDelegate::sectionHeaderHeight(const QModelIndex&) const’
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/kfileplacesview.cpp:642:69: warning[-Wunused-parameter]: unused parameter ‘index’
#  642 | int KFilePlacesViewDelegate::sectionHeaderHeight(const QModelIndex &index) const
#      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~~
#  640|   }
#  641|   
#  642|-> int KFilePlacesViewDelegate::sectionHeaderHeight(const QModelIndex &index) const
#  643|   {
#  644|       // Account for the spacing between header and item

Error: COMPILER_WARNING (CWE-477): [#def15]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:741:93: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  741 |                         QObject::connect(m_newFolderShortcutAction, &QAction::changed, act, [=]() {
#      |                                                                                             ^
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:741:93: note: add explicit ‘this’ or ‘*this’ capture
#  739|                           act->setShortcutContext(Qt::WidgetShortcut);
#  740|                           // We also need to react to shortcut changes.
#  741|->                         QObject::connect(m_newFolderShortcutAction, &QAction::changed, act, [=]() {
#  742|                               act->setShortcuts(m_newFolderShortcutAction->shortcuts());
#  743|                           });

Error: COMPILER_WARNING (CWE-477): [#def16]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:815:99: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  815 |                                 QObject::connect(m_newFileShortcutAction, &QAction::changed, act, [=]() {
#      |                                                                                                   ^
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:815:99: note: add explicit ‘this’ or ‘*this’ capture
#  813|                                   act->setShortcutContext(Qt::WidgetShortcut);
#  814|                                   // We also need to react to shortcut changes.
#  815|->                                 QObject::connect(m_newFileShortcutAction, &QAction::changed, act, [=]() {
#  816|                                       act->setShortcuts(m_newFileShortcutAction->shortcuts());
#  817|                                   });

Error: CLANG_WARNING: [#def17]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:878:48: warning[core.CallAndMessage]: Called C++ object pointer is null
#  876|   
#  877|       KNewFileMenuSingleton *s = kNewMenuGlobals();
#  878|->     const KNewFileMenuSingleton::Entry entry = s->templatesList->at(id - 1);
#  879|   
#  880|       const bool createSymlink = entry.templatePath == QLatin1String("__CREATE_SYMLINK__");

Error: COMPILER_WARNING (CWE-477): [#def18]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:1419:43: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1419 |     connect(nameJob, &KJob::result, this, [=]() mutable {
#      |                                           ^
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:1419:43: note: add explicit ‘this’ or ‘*this’ capture
# 1417|   
# 1418|       auto nameJob = new KIO::NameFinderJob(d->m_baseUrl, name, this);
# 1419|->     connect(nameJob, &KJob::result, this, [=]() mutable {
# 1420|           if (!nameJob->error()) {
# 1421|               d->m_baseUrl = nameJob->baseUrl();

Error: COMPILER_WARNING (CWE-758): [#def19]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:13:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
#   13 | #if USE_DBUS
#      |     ^~~~~~~~
#   11|   #include "openfilemanagerwindowjob_p.h"
#   12|   
#   13|-> #if USE_DBUS
#   14|   #include <QDBusConnection>
#   15|   #include <QDBusMessage>

Error: COMPILER_WARNING (CWE-758): [#def20]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:48:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
#   48 | #if USE_DBUS
#      |     ^~~~~~~~
#   46|       ~OpenFileManagerWindowJobPrivate() = default;
#   47|   
#   48|-> #if USE_DBUS
#   49|       void createDBusStrategy()
#   50|       {

Error: COMPILER_WARNING (CWE-758): [#def21]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:77:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
#   77 | #if USE_DBUS
#      |     ^~~~~~~~
#   75|       , d(new OpenFileManagerWindowJobPrivate(this))
#   76|   {
#   77|-> #if USE_DBUS
#   78|       d->createDBusStrategy();
#   79|   #elif defined(Q_OS_WINDOWS)

Error: COMPILER_WARNING (CWE-758): [#def22]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:129:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
#  129 | #if USE_DBUS
#      |     ^~~~~~~~
#  127|   }
#  128|   
#  129|-> #if USE_DBUS
#  130|   void OpenFileManagerWindowDBusStrategy::start(const QList<QUrl> &urls, const QByteArray &asn)
#  131|   {

Error: COMPILER_WARNING (CWE-477): [#def23]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:144:78: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  144 |         QObject::connect(watcher, &QDBusPendingCallWatcher::finished, m_job, [=](QDBusPendingCallWatcher *watcher) {
#      |                                                                              ^
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:144:78: note: add explicit ‘this’ or ‘*this’ capture
#  142|           QDBusPendingReply<void> reply = QDBusConnection::sessionBus().asyncCall(msg);
#  143|           QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, m_job);
#  144|->         QObject::connect(watcher, &QDBusPendingCallWatcher::finished, m_job, [=](QDBusPendingCallWatcher *watcher) {
#  145|               QDBusPendingReply<void> reply = *watcher;
#  146|               watcher->deleteLater();

Error: COMPILER_WARNING (CWE-758): [#def24]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:11: included_from: Included from here.
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob_p.h:42:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
#   42 | #if USE_DBUS
#      |     ^~~~~~~~
#   40|   };
#   41|   
#   42|-> #if USE_DBUS
#   43|   class OpenFileManagerWindowDBusStrategy : public AbstractOpenFileManagerWindowStrategy
#   44|   {

Error: COMPILER_WARNING (CWE-477): [#def25]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openurljob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openurljob.cpp:444:98: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  444 |     QObject::connect(untrustedProgramHandler, &KIO::UntrustedProgramHandlerInterface::result, q, [=](bool result) {
#      |                                                                                                  ^
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openurljob.cpp:444:98: note: add explicit ‘this’ or ‘*this’ capture
#  442|           return;
#  443|       }
#  444|->     QObject::connect(untrustedProgramHandler, &KIO::UntrustedProgramHandlerInterface::result, q, [=](bool result) {
#  445|           if (result) {
#  446|               QString errorString;

Error: CLANG_WARNING: [#def26]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/systemd/systemdprocessrunner.cpp:191:1: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
#  189|           qCDebug(KIO_GUI) << "Successfully unref'd service:" << m_serviceName;
#  190|       });
#  191|-> }
#  192|   
#  193|   void SystemdProcessRunner::handleUnitNew(const QString &newName, const QDBusObjectPath &newPath)

Error: CLANG_WARNING: [#def27]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/fdreceiver.cpp:64:13: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#   62|           FDMessageHeader msg;
#   63|           if (::recvmsg(client, msg.message(), 0) == 2) {
#   64|->             ::memcpy(&m_fileDes, CMSG_DATA(msg.cmsgHeader()), sizeof m_fileDes);
#   65|           }
#   66|           ::close(client);

Error: COMPILER_WARNING (CWE-252): [#def28]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/file.cpp: scope_hint: In member function ‘KIO::WorkerResult FileProtocol::unmount(const QString&)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/file.cpp:933:11: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
#  933 |     system(buffer.constData());
#      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~
#  931|   
#  932|       buffer = umountProg + ' ' + QFile::encodeName(KShell::quoteArg(_point)) + " 2>" + tmpFileName;
#  933|->     system(buffer.constData());
#  934|   
#  935|       QString err = readLogFile(tmpFileName);

Error: COMPILER_WARNING (CWE-252): [#def29]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/file_unix.cpp: scope_hint: In member function ‘virtual KIO::WorkerResult FileProtocol::copy(const QUrl&, const QUrl&, int, KIO::JobFlags)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/file_unix.cpp:965:26: warning[-Wunused-result]: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’
#  965 |             (void)::chown(_dest.data(), buffSrc.st_uid, -1 /*keep group*/);
#      |                   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  963|               // as we are the owner of the new file, we can always change the group, but
#  964|               // we might not be allowed to change the owner
#  965|->             (void)::chown(_dest.data(), buffSrc.st_uid, -1 /*keep group*/);
#  966|           } else {
#  967|               if (!tryChangeFileAttr(CHOWN, {_dest, buffSrc.st_uid, buffSrc.st_gid}, errno).success()) {

Error: CLANG_WARNING: [#def30]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/file_unix.cpp:1486:13: warning[deadcode.DeadStores]: Value stored to 'acl' is never read
# 1484|               // user told us to delete the extended ACL, so let's write only
# 1485|               // the minimal (UNIX permission bits) part
# 1486|->             acl = ACLPortability::acl_from_mode(perm);
# 1487|           }
# 1488|           acl = acl_from_text(ACLString.toLatin1().constData());

Error: CLANG_WARNING: [#def31]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/kauth/filehelper.cpp:116:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'seteuid' is not checked.  If an error occurs in 'seteuid', the following code may execute with unexpected privileges
#  114|       gid_t oldgid = p->gid;
#  115|   
#  116|->     seteuid(olduid);
#  117|       setegid(oldgid);
#  118|       setgroups(1, &oldgid);

Error: COMPILER_WARNING (CWE-252): [#def32]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/kauth/filehelper.cpp: scope_hint: In function ‘void gainPrivilege(Privilege*)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/kauth/filehelper.cpp:116:12: warning[-Wunused-result]: ignoring return value of ‘int seteuid(__uid_t)’ declared with attribute ‘warn_unused_result’
#  116 |     seteuid(olduid);
#      |     ~~~~~~~^~~~~~~~
#  114|       gid_t oldgid = p->gid;
#  115|   
#  116|->     seteuid(olduid);
#  117|       setegid(oldgid);
#  118|       setgroups(1, &oldgid);

Error: CLANG_WARNING: [#def33]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/kauth/filehelper.cpp:117:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setegid' is not checked.  If an error occurs in 'setegid', the following code may execute with unexpected privileges
#  115|   
#  116|       seteuid(olduid);
#  117|->     setegid(oldgid);
#  118|       setgroups(1, &oldgid);
#  119|   }

Error: COMPILER_WARNING (CWE-252): [#def34]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/kauth/filehelper.cpp:117:12: warning[-Wunused-result]: ignoring return value of ‘int setegid(__gid_t)’ declared with attribute ‘warn_unused_result’
#  117 |     setegid(oldgid);
#      |     ~~~~~~~^~~~~~~~
#  115|   
#  116|       seteuid(olduid);
#  117|->     setegid(oldgid);
#  118|       setgroups(1, &oldgid);
#  119|   }

Error: CLANG_WARNING: [#def35]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/file/kauth/filehelper.cpp:275:1: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
#  273|   }
#  274|   
#  275|-> KAUTH_HELPER_MAIN("org.kde.kio.file", FileHelper)
#  276|   
#  277|   #include "moc_filehelper.cpp"

Error: COMPILER_WARNING (CWE-477): [#def36]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/help/main.cpp: scope_hint: In function ‘int kdemain(int, char**)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/help/main.cpp:56:33: warning[-Wdeprecated-declarations]: ‘int xmlSubstituteEntitiesDefault(int)’ is deprecated
#   56 |     xmlSubstituteEntitiesDefault(1);
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
/usr/include/libxml2/libxml/HTMLtree.h:16: included_from: Included from here.
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/help/main.cpp:20: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
#  953 |                 xmlSubstituteEntitiesDefault(int val);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   54|   
#   55|       LIBXML_TEST_VERSION
#   56|->     xmlSubstituteEntitiesDefault(1);
#   57|       xmlLoadExtDtdDefaultValue = 1;
#   58|       exsltRegisterAll();

Error: COMPILER_WARNING (CWE-477): [#def37]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/help/main_ghelp.cpp: scope_hint: In function ‘int kdemain(int, char**)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/help/main_ghelp.cpp:49:33: warning[-Wdeprecated-declarations]: ‘int xmlSubstituteEntitiesDefault(int)’ is deprecated
#   49 |     xmlSubstituteEntitiesDefault(1);
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
/usr/include/libxml2/libxml/HTMLtree.h:16: included_from: Included from here.
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/help/main_ghelp.cpp:16: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
#  953 |                 xmlSubstituteEntitiesDefault(int val);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   47|   
#   48|       LIBXML_TEST_VERSION
#   49|->     xmlSubstituteEntitiesDefault(1);
#   50|       xmlLoadExtDtdDefaultValue = 1;
#   51|       exsltRegisterAll();

Error: COMPILER_WARNING (CWE-563): [#def38]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/http/http.cpp: scope_hint: In member function ‘KIO::WorkerResult HTTPProtocol::davGeneric(const QUrl&, KIO::HTTP_METHOD, qint64)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/http/http.cpp:1146:93: warning[-Wunused-parameter]: unused parameter ‘size’
# 1146 | KIO::WorkerResult HTTPProtocol::davGeneric(const QUrl &url, KIO::HTTP_METHOD method, qint64 size)
#      |                                                                                      ~~~~~~~^~~~
# 1144|   }
# 1145|   
# 1146|-> KIO::WorkerResult HTTPProtocol::davGeneric(const QUrl &url, KIO::HTTP_METHOD method, qint64 size)
# 1147|   {
# 1148|       // TODO what about size?

Error: CLANG_WARNING: [#def39]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/trash/kio_trash.cpp:220:13: warning[deadcode.DeadStores]: Value stored to 'ok' is never read
#  218|       if (QFile::exists(destPath)) {
#  219|           if (overwrite) {
#  220|->             ok = QFile::remove(destPath);
#  221|               Q_ASSERT(ok); // ### TODO
#  222|           } else {

Error: COMPILER_WARNING (CWE-477): [#def40]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/dropjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/dropjob.cpp:406:30: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  406 |     QTimer::singleShot(0, q, [=]() {
#      |                              ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/dropjob.cpp:406:30: note: add explicit ‘this’ or ‘*this’ capture
#  404|       // So we need to give the menu time in case it needs to emit triggered.
#  405|       // If it does, the cleanup will be done by slotTriggered.
#  406|->     QTimer::singleShot(0, q, [=]() {
#  407|           if (!m_triggered) {
#  408|               q->setError(KIO::ERR_USER_CANCELED);

Error: COMPILER_WARNING (CWE-477): [#def41]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/fileundomanager.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/fileundomanager.cpp:380:109: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  380 |                 QObject::connect(askUserInterface, &KIO::AskUserActionInterface::askUserDeleteResult, this, [=](bool allowDelete) {
#      |                                                                                                             ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/fileundomanager.cpp:380:109: note: add explicit ‘this’ or ‘*this’ capture
#  378|               if (!d->m_connectedToAskUserInterface) {
#  379|                   d->m_connectedToAskUserInterface = true;
#  380|->                 QObject::connect(askUserInterface, &KIO::AskUserActionInterface::askUserDeleteResult, this, [=](bool allowDelete) {
#  381|                       if (allowDelete) {
#  382|                           d->startUndo();

Error: CLANG_WARNING: [#def42]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/imagefilter.cpp:111:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  109|               stackpix = &stack[stackindex];
#  110|   
#  111|->             sum_out += *stackpix;
#  112|               sum_in -= *stackpix;
#  113|           } // for (x = 0, ...)

Error: CLANG_WARNING: [#def43]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/imagefilter.cpp:187:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  185|               stackpix = &stack[stackindex];
#  186|   
#  187|->             sum_out += *stackpix;
#  188|               sum_in -= *stackpix;
#  189|           } // for (y = 0, ...)

Error: COMPILER_WARNING (CWE-477): [#def44]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:1989:22: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1989 |     auto chmodDirs = [=]() {
#      |                      ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:1989:22: note: add explicit ‘this’ or ‘*this’ capture
# 1987|       };
# 1988|   
# 1989|->     auto chmodDirs = [=]() {
# 1990|           if (dirs.isEmpty()) {
# 1991|               setDirty(false);

Error: COMPILER_WARNING (CWE-477): [#def45]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2054:62: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2054 |     connect(d->m_ui.lineEdit, &QLineEdit::textChanged, this, [=](const QString &text) {
#      |                                                              ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2054:62: note: add explicit ‘this’ or ‘*this’ capture
# 2052|       d->m_ui.sha512CopyButton->hide();
# 2053|   
# 2054|->     connect(d->m_ui.lineEdit, &QLineEdit::textChanged, this, [=](const QString &text) {
# 2055|           slotVerifyChecksum(text.toLower());
# 2056|       });

Error: COMPILER_WARNING (CWE-477): [#def46]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2067:65: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2067 |     connect(d->m_ui.md5CopyButton, &QPushButton::clicked, this, [=]() {
#      |                                                                 ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2067:65: note: add explicit ‘this’ or ‘*this’ capture
# 2065|   
# 2066|       auto clipboard = QApplication::clipboard();
# 2067|->     connect(d->m_ui.md5CopyButton, &QPushButton::clicked, this, [=]() {
# 2068|           clipboard->setText(d->m_md5);
# 2069|       });

Error: COMPILER_WARNING (CWE-477): [#def47]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2071:66: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2071 |     connect(d->m_ui.sha1CopyButton, &QPushButton::clicked, this, [=]() {
#      |                                                                  ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2071:66: note: add explicit ‘this’ or ‘*this’ capture
# 2069|       });
# 2070|   
# 2071|->     connect(d->m_ui.sha1CopyButton, &QPushButton::clicked, this, [=]() {
# 2072|           clipboard->setText(d->m_sha1);
# 2073|       });

Error: COMPILER_WARNING (CWE-477): [#def48]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2075:68: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2075 |     connect(d->m_ui.sha256CopyButton, &QPushButton::clicked, this, [=]() {
#      |                                                                    ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2075:68: note: add explicit ‘this’ or ‘*this’ capture
# 2073|       });
# 2074|   
# 2075|->     connect(d->m_ui.sha256CopyButton, &QPushButton::clicked, this, [=]() {
# 2076|           clipboard->setText(d->m_sha256);
# 2077|       });

Error: COMPILER_WARNING (CWE-477): [#def49]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2079:68: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2079 |     connect(d->m_ui.sha512CopyButton, &QPushButton::clicked, this, [=]() {
#      |                                                                    ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2079:68: note: add explicit ‘this’ or ‘*this’ capture
# 2077|       });
# 2078|   
# 2079|->     connect(d->m_ui.sha512CopyButton, &QPushButton::clicked, this, [=]() {
# 2080|           clipboard->setText(d->m_sha512);
# 2081|       });

Error: COMPILER_WARNING (CWE-477): [#def50]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2083:63: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2083 |     connect(d->m_ui.pasteButton, &QPushButton::clicked, this, [=]() {
#      |                                                               ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2083:63: note: add explicit ‘this’ or ‘*this’ capture
# 2081|       });
# 2082|   
# 2083|->     connect(d->m_ui.pasteButton, &QPushButton::clicked, this, [=]() {
# 2084|           d->m_ui.lineEdit->setText(clipboard->text());
# 2085|       });

Error: COMPILER_WARNING (CWE-477): [#def51]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2184:70: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2184 |     connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
#      |                                                                      ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2184:70: note: add explicit ‘this’ or ‘*this’ capture
# 2182|       // Calculate checksum in another thread.
# 2183|       auto futureWatcher = new QFutureWatcher<QString>(this);
# 2184|->     connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
# 2185|           const QString checksum = futureWatcher->result();
# 2186|           futureWatcher->deleteLater();

Error: COMPILER_WARNING (CWE-477): [#def52]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2359:70: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2359 |     connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
#      |                                                                      ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2359:70: note: add explicit ‘this’ or ‘*this’ capture
# 2357|       // Calculate checksum in another thread.
# 2358|       auto futureWatcher = new QFutureWatcher<QString>(this);
# 2359|->     connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
# 2360|           const QString checksum = futureWatcher->result();
# 2361|           futureWatcher->deleteLater();

Error: COMPILER_WARNING (CWE-477): [#def53]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:165:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  165 |     QMetaObject::invokeMethod(qGuiApp, [=] {
#      |                                        ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:165:40: note: add explicit ‘this’ or ‘*this’ capture
#  163|                                                        const QDateTime &mtimeDest)
#  164|   {
#  165|->     QMetaObject::invokeMethod(qGuiApp, [=] {
#  166|           auto *dlg = new KIO::RenameDialog(d->getParentWidget(job), title, src, dest, options, sizeSrc, sizeDest, ctimeSrc, ctimeDest, mtimeSrc, mtimeDest);
#  167|   

Error: COMPILER_WARNING (CWE-477): [#def54]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:184:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  184 |     QMetaObject::invokeMethod(qGuiApp, [=] {
#      |                                        ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:184:40: note: add explicit ‘this’ or ‘*this’ capture
#  182|   void KIO::WidgetsAskUserActionHandler::askUserSkip(KJob *job, KIO::SkipDialog_Options options, const QString &errorText)
#  183|   {
#  184|->     QMetaObject::invokeMethod(qGuiApp, [=] {
#  185|           auto *dlg = new KIO::SkipDialog(d->getParentWidget(job), options, errorText);
#  186|           dlg->setAttribute(Qt::WA_DeleteOnClose);

Error: COMPILER_WARNING (CWE-477): [#def55]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:334:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  334 |     QMetaObject::invokeMethod(qGuiApp, [=] {
#      |                                        ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:334:40: note: add explicit ‘this’ or ‘*this’ capture
#  332|       }
#  333|   
#  334|->     QMetaObject::invokeMethod(qGuiApp, [=] {
#  335|           const auto &[prettyList, dialogType, acceptButton, text, icon, title, singleUrl] = processAskDelete(urls, deletionType);
#  336|           KMessageDialog *dlg = new KMessageDialog(dialogType, text, parent);

Error: COMPILER_WARNING (CWE-477): [#def56]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:348:48: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  348 |         connect(dlg, &QDialog::finished, this, [=](const int buttonCode) {
#      |                                                ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:348:48: note: add explicit ‘this’ or ‘*this’ capture
#  346|           dlg->setDontAskAgainChecked(!ask);
#  347|   
#  348|->         connect(dlg, &QDialog::finished, this, [=](const int buttonCode) {
#  349|               const bool isDelete = (buttonCode == KMessageDialog::PrimaryAction);
#  350|   

Error: COMPILER_WARNING (CWE-477): [#def57]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:424:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  424 |     QMetaObject::invokeMethod(qGuiApp, [=]() {
#      |                                        ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:424:40: note: add explicit ‘this’ or ‘*this’ capture
#  422|       }
#  423|   
#  424|->     QMetaObject::invokeMethod(qGuiApp, [=]() {
#  425|           auto cancelButton = hasCancelButton ? KStandardGuiItem::cancel() : KGuiItem();
#  426|           auto *dialog = new KMessageDialog(dlgType, text, d->getParentWidget(parent));

Error: COMPILER_WARNING (CWE-477): [#def58]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:437:51: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  437 |         connect(dialog, &QDialog::finished, this, [=](const int result) {
#      |                                                   ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:437:51: note: add explicit ‘this’ or ‘*this’ capture
#  435|           dialog->setOpenExternalLinks(true); // Allow opening external links in the text labels
#  436|   
#  437|->         connect(dialog, &QDialog::finished, this, [=](const int result) {
#  438|               KIO::WorkerBase::ButtonCode btnCode;
#  439|               switch (result) {

Error: COMPILER_WARNING (CWE-477): [#def59]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:525:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  525 |     QMetaObject::invokeMethod(qGuiApp, [=] {
#      |                                        ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:525:40: note: add explicit ‘this’ or ‘*this’ capture
#  523|       }
#  524|   
#  525|->     QMetaObject::invokeMethod(qGuiApp, [=] {
#  526|           if (decodedOk) { // Use KSslInfoDialog
#  527|               KSslInfoDialog *ksslDlg = new KSslInfoDialog(parentWidget);

Error: COMPILER_WARNING (CWE-477): [#def60]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsopenwithhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsopenwithhandler.cpp:66:47: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#   66 |     connect(dialog, &QDialog::accepted, this, [=]() {
#      |                                               ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsopenwithhandler.cpp:66:47: note: add explicit ‘this’ or ‘*this’ capture
#   64|       KOpenWithDialog *dialog = new KOpenWithDialog(urls, mimeType, QString(), QString(), parentWidget);
#   65|       dialog->setAttribute(Qt::WA_DeleteOnClose);
#   66|->     connect(dialog, &QDialog::accepted, this, [=]() {
#   67|           KService::Ptr service = dialog->service();
#   68|           if (!service) {

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-177.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kio-6.0.0-5.fc40
store-results-to/tmp/tmpz2hl61pb/kf6-kio-6.0.0-5.fc40.tar.xz
time-created2024-07-03 14:07:04
time-finished2024-07-03 14:16:40
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpz2hl61pb/kf6-kio-6.0.0-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpz2hl61pb/kf6-kio-6.0.0-5.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9