plasma-workspace-6.2.3-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/libexec/kf6/kauth/fontinst_x11:17:10: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#   15|   suffix=".fontinst-$$"
#   16|   
#   17|-> for d in $* ; do
#   18|       for f in fonts.scale fonts.dir ; do
#   19|           # Call standard xorg app...

Error: SHELLCHECK_WARNING (CWE-758): [#def2]
/usr/libexec/plasma-sourceenv.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> for i in $@
#    2|   do
#    3|       . $i >/dev/null

Error: SHELLCHECK_WARNING (CWE-88): [#def3]
/usr/libexec/plasma-sourceenv.sh:1:10: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#    1|-> for i in $@
#    2|   do
#    3|       . $i >/dev/null

Error: COMPILER_WARNING (CWE-665): [#def4]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/applets/devicenotifier/plugin/devicecontrol.cpp:24:1: warning[-Wreorder]:   when initialized here
#   24 | DeviceControl::DeviceControl(QObject *parent)
#      | ^~~~~~~~~~~~~
#   22|   #include <QTimer>
#   23|   
#   24|-> DeviceControl::DeviceControl(QObject *parent)
#   25|       : QAbstractListModel(parent)
#   26|       , m_types({

Error: COMPILER_WARNING (CWE-665): [#def5]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/applets/devicenotifier/plugin/devicecontrol.h:81:22: warning[-Wreorder]:   ‘Solid::Predicate DeviceControl::m_encryptedPredicate’
#   81 |     Solid::Predicate m_encryptedPredicate;
#      |                      ^~~~~~~~~~~~~~~~~~~~
#   79|       QHash<QString, RemoveTimerData> m_removeTimers;
#   80|       Solid::Predicate m_predicateDeviceMatch;
#   81|->     Solid::Predicate m_encryptedPredicate;
#   82|       const QList<Solid::DeviceInterface::Type> m_types;
#   83|       bool m_isVisible = false;

Error: COMPILER_WARNING (CWE-665): [#def6]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/applets/devicenotifier/plugin/devicecontrol.cpp:7: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/applets/devicenotifier/plugin/devicecontrol.h: scope_hint: In constructor ‘DeviceControl::DeviceControl(QObject*)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/applets/devicenotifier/plugin/devicecontrol.h:82:47: warning[-Wreorder]: ‘DeviceControl::m_types’ will be initialized after
#   82 |     const QList<Solid::DeviceInterface::Type> m_types;
#      |                                               ^~~~~~~
#   80|       Solid::Predicate m_predicateDeviceMatch;
#   81|       Solid::Predicate m_encryptedPredicate;
#   82|->     const QList<Solid::DeviceInterface::Type> m_types;
#   83|       bool m_isVisible = false;
#   84|   

Error: COMPILER_WARNING (CWE-195): [#def7]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/dataengines/powermanagement/powermanagementjob.cpp: scope_hint: In member function ‘virtual void PowerManagementJob::start()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/dataengines/powermanagement/powermanagementjob.cpp:94:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint’ {aka ‘unsigned int’} and ‘int’
#   94 |         if (m_sleepInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
#   92|           return;
#   93|       } else if (operation == QLatin1String("beginSuppressingSleep")) {
#   94|->         if (m_sleepInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#   95|               setResult(true);
#   96|               return;

Error: COMPILER_WARNING (CWE-195): [#def8]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/dataengines/powermanagement/powermanagementjob.cpp:134:36: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint’ {aka ‘unsigned int’} and ‘int’
#  134 |         if (m_lockInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#      |             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
#  132|           return;
#  133|       } else if (operation == QLatin1String("beginSuppressingScreenPowerManagement")) {
#  134|->         if (m_lockInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#  135|               setResult(true);
#  136|               return;

Error: COMPILER_WARNING (CWE-252): [#def9]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/dataengines/time/timeengine.cpp: scope_hint: In lambda function
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/dataengines/time/timeengine.cpp:71:13: warning[-Wunused-result]: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’
#   71 |         read(fd, &c, 8);
#      |         ~~~~^~~~~~~~~~~
#   69|       connect(notifier, &QSocketNotifier::activated, this, [this](int fd) {
#   70|           uint64_t c;
#   71|->         read(fd, &c, 8);
#   72|           clockSkewed();
#   73|       });

Error: COMPILER_WARNING (CWE-477): [#def10]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/icons/main.cpp: scope_hint: In member function ‘void IconModule::ghnsEntriesChanged()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/icons/main.cpp:132:41: warning[-Wdeprecated-declarations]: ‘void KIconLoader::newIconLoader()’ is deprecated: Since 5.0. Use KIconLoader::emitChange(Group)
#  132 |     KIconLoader::global()->newIconLoader();
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/KF6/KIconThemes/KIconLoader:1: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/icons/main.cpp:31: included_from: Included from here.
/usr/include/KF6/KIconThemes/kiconloader.h:641:10: note: declared here
#  641 |     void newIconLoader();
#      |          ^~~~~~~~~~~~~
#  130|       // reload the display icontheme items
#  131|       KIconTheme::reconfigure();
#  132|->     KIconLoader::global()->newIconLoader();
#  133|       load();
#  134|       QPixmapCache::clear();

Error: COMPILER_WARNING (CWE-477): [#def11]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/icons/main.cpp: scope_hint: In member function ‘void IconModule::installThemeFile(const QString&)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/icons/main.cpp:186:41: warning[-Wdeprecated-declarations]: ‘void KIconLoader::newIconLoader()’ is deprecated: Since 5.0. Use KIconLoader::emitChange(Group)
#  186 |     KIconLoader::global()->newIconLoader();
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/KF6/KIconThemes/kiconloader.h:641:10: note: declared here
#  641 |     void newIconLoader();
#      |          ^~~~~~~~~~~~~
#  184|       Q_EMIT showSuccessMessage(i18n("Theme installed successfully."));
#  185|   
#  186|->     KIconLoader::global()->newIconLoader();
#  187|       m_model->load();
#  188|   }

Error: COMPILER_WARNING (CWE-252): [#def12]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/dbus/FontInst.cpp: scope_hint: In function ‘bool KFI::renameFontFile(const QString&, const QString&, int, int)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/dbus/FontInst.cpp:401:16: warning[-Wunused-result]: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’
#  401 |         ::chown(dest.data(), uid, gid);
#      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
#  399|       Misc::setFilePerms(dest);
#  400|       if (-1 != uid && -1 != gid) {
#  401|->         ::chown(dest.data(), uid, gid);
#  402|       }
#  403|       return true;

Error: COMPILER_WARNING (CWE-252): [#def13]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/dbus/Helper.cpp: scope_hint: In function ‘bool KFI::renameFontFile(const QString&, const QString&, int, int)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/dbus/Helper.cpp:190:16: warning[-Wunused-result]: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’
#  190 |         ::chown(dest.data(), uid, gid);
#      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
#  188|       Misc::setFilePerms(dest);
#  189|       if (-1 != uid && -1 != gid) {
#  190|->         ::chown(dest.data(), uid, gid);
#  191|       }
#  192|       return true;

Error: COMPILER_WARNING (CWE-252): [#def14]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/dbus/Helper.cpp: scope_hint: In member function ‘int KFI::Helper::move(const QVariantMap&)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/dbus/Helper.cpp:225:28: warning[-Wunused-result]: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’
#  225 |                     ::chown(QFile::encodeName(destFolder).data(), toUid, toGid);
#      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  223|                   result = Misc::createDir(destFolder) ? (int)FontInst::STATUS_OK : (int)KIO::ERR_WRITE_ACCESS_DENIED;
#  224|                   if (FontInst::STATUS_OK == result) {
#  225|->                     ::chown(QFile::encodeName(destFolder).data(), toUid, toGid);
#  226|                   }
#  227|               }

Error: COMPILER_WARNING (CWE-477): [#def15]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/viewpart/CharTip.cpp: scope_hint: In member function ‘void KFI::CCharTip::showTip()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/viewpart/CharTip.cpp:158:34: warning[-Wdeprecated-declarations]: ‘static QString QString::fromUcs4(const uint*, qsizetype)’ is deprecated: Use char32_t* overload.
#  158 |     QString str(QString::fromUcs4(&(m_item.ucs4), 1));
#      |                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qhashfunctions.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qlist.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qstringlist.h:5: included_from: Included from here.
/usr/include/qt6/QtGui/qcolor.h:10: included_from: Included from here.
/usr/include/qt6/QtGui/QColor:1: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/lib/FcEngine.h:8: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/viewpart/CharTip.h:8: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/kfontinst/viewpart/CharTip.cpp:12: included_from: Included from here.
/usr/include/qt6/QtCore/qstring.h:696:20: note: declared here
#  696 |     static QString fromUcs4(const uint *str, qsizetype size = -1)
#      |                    ^~~~~~~~
#  156|           u"<tr><td align=\"right\"><b>" + i18n("UCS-4") + u"&nbsp;</b></td><td>" + u"U+" + QStringLiteral("%1").arg(m_item.ucs4, 4, 16) + u"&nbsp;</td></tr>";
#  157|   
#  158|->     QString str(QString::fromUcs4(&(m_item.ucs4), 1));
#  159|       details += u"<tr><td align=\"right\"><b>" + i18n("UTF-16") + u"&nbsp;</b></td><td>";
#  160|   

Error: COMPILER_WARNING (CWE-563): [#def16]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/wallpaper/wallpapermodule.cpp: scope_hint: In member function ‘virtual void WallpaperModule::save()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/kcms/wallpaper/wallpapermodule.cpp:324:26: warning[-Wunused-variable]: unused variable ‘output’
#  324 |         for (const auto &output : outputOrder) {
#      |                          ^~~~~~
#  322|           uint idx = 0;
#  323|           const auto outputOrder = m_outputOrderWatcher->outputOrder();
#  324|->         for (const auto &output : outputOrder) {
#  325|               screenIds.append(idx);
#  326|               ++idx;

Error: COMPILER_WARNING (CWE-758): [#def17]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/ksmserver/legacy.cpp: scope_hint: In member function ‘void KSMServer::performLegacySessionSave()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/ksmserver/legacy.cpp:181:30: warning[-Wrestrict]: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4
#  181 |             ::select(fd + 1, &fds, nullptr, &fds, &tmwait);
#      |                              ^~~~           ~~~~
#  179|               tmwait.tv_sec = (wmSaveYourselfTimeout - msecs) / 1000;
#  180|               tmwait.tv_usec = ((wmSaveYourselfTimeout - msecs) % 1000) * 1000;
#  181|->             ::select(fd + 1, &fds, nullptr, &fds, &tmwait);
#  182|           }
#  183|       }

Error: COMPILER_WARNING (CWE-563): [#def18]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/ksmserver/server.cpp:177:24: warning[-Wunused-variable]: ‘remTempFile’ defined but not used
#  177 | static QTemporaryFile *remTempFile = nullptr;
#      |                        ^~~~~~~~~~~
#  175|   IceAuthDataEntry *authDataEntries = nullptr;
#  176|   
#  177|-> static QTemporaryFile *remTempFile = nullptr;
#  178|   
#  179|   static IceListenObj *listenObjs = nullptr;

Error: COMPILER_WARNING (CWE-1164): [#def19]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/ksmserver/server.cpp:309:13: warning[-Wunused-function]: ‘void fprintfhex(FILE*, unsigned int, char*)’ defined but not used
#  309 | static void fprintfhex(FILE *fp, unsigned int len, char *cp)
#      |             ^~~~~~~~~~
#  307|   
#  308|   /* for printing hex digits */
#  309|-> static void fprintfhex(FILE *fp, unsigned int len, char *cp)
#  310|   {
#  311|       static const char hexchars[] = "0123456789abcdef";

Error: COMPILER_WARNING (CWE-665): [#def20]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/libnotificationmanager/jobsmodel_p.cpp:39:1: warning[-Wreorder]:   when initialized here
#   39 | JobsModelPrivate::JobsModelPrivate(QObject *parent)
#      | ^~~~~~~~~~~~~~~~
#   37|   using namespace std::literals::chrono_literals;
#   38|   
#   39|-> JobsModelPrivate::JobsModelPrivate(QObject *parent)
#   40|       : QObject(parent)
#   41|       , m_serviceWatcher(new QDBusServiceWatcher(this))

Error: COMPILER_WARNING (CWE-665): [#def21]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/libnotificationmanager/jobsmodel_p.h:82:13: warning[-Wreorder]:   ‘QTimer* NotificationManager::JobsModelPrivate::m_compressUpdatesTimer’
#   82 |     QTimer *m_compressUpdatesTimer = nullptr;
#      |             ^~~~~~~~~~~~~~~~~~~~~~
#   80|       int m_highestJobId = 1;
#   81|   
#   82|->     QTimer *m_compressUpdatesTimer = nullptr;
#   83|       QHash<Job *, QList<int>> m_pendingDirtyRoles;
#   84|   

Error: COMPILER_WARNING (CWE-665): [#def22]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/libnotificationmanager/jobsmodel_p.cpp:7: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/libnotificationmanager/jobsmodel_p.h: scope_hint: In constructor ‘NotificationManager::JobsModelPrivate::JobsModelPrivate(QObject*)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/libnotificationmanager/jobsmodel_p.h:87:26: warning[-Wreorder]: ‘NotificationManager::JobsModelPrivate::m_serviceWatcher’ will be initialized after
#   87 |     QDBusServiceWatcher *m_serviceWatcher = nullptr;
#      |                          ^~~~~~~~~~~~~~~~
#   85|       QList<Job *> m_pendingJobViews;
#   86|       
#   87|->     QDBusServiceWatcher *m_serviceWatcher = nullptr;
#   88|       Settings *m_settings = nullptr;
#   89|   };

Error: COMPILER_WARNING (CWE-563): [#def23]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelconfigview.cpp: scope_hint: In member function ‘void PanelConfigView::focusVisibilityCheck(QWindow*)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelconfigview.cpp:403:14: warning[-Wunused-variable]: unused variable ‘desktop’
#  403 |     if (auto desktop = qobject_cast<const DesktopView *>(focusWindow)) {
#      |              ^~~~~~~
#  401|       // Never hide when the user is handling desktop widgets, e.g. drag
#  402|       // and dropping them around.
#  403|->     if (auto desktop = qobject_cast<const DesktopView *>(focusWindow)) {
#  404|           return;
#  405|       }

Error: COMPILER_WARNING (CWE-1023): [#def24]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelview.cpp:102:16: warning[-Wswitch]: enumeration value ‘Desktop’ not handled in switch
#  100|       connect(this, &PanelView::containmentChanged, this, &PanelView::refreshContainment);
#  101|       connect(this, &PanelView::locationChanged, this, [this](Plasma::Types::Location location) {
#  102|->         switch (location) {
#  103|           case Plasma::Types::LeftEdge:
#  104|           case Plasma::Types::RightEdge:

Error: COMPILER_WARNING (CWE-1023): [#def25]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelview.cpp: scope_hint: In lambda function
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelview.cpp:102:16: warning[-Wswitch]: enumeration value ‘Floating’ not handled in switch
#  102 |         switch (location) {
#      |                ^
#  100|       connect(this, &PanelView::containmentChanged, this, &PanelView::refreshContainment);
#  101|       connect(this, &PanelView::locationChanged, this, [this](Plasma::Types::Location location) {
#  102|->         switch (location) {
#  103|           case Plasma::Types::LeftEdge:
#  104|           case Plasma::Types::RightEdge:

Error: COMPILER_WARNING (CWE-1023): [#def26]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelview.cpp:102:16: warning[-Wswitch]: enumeration value ‘FullScreen’ not handled in switch
#  100|       connect(this, &PanelView::containmentChanged, this, &PanelView::refreshContainment);
#  101|       connect(this, &PanelView::locationChanged, this, [this](Plasma::Types::Location location) {
#  102|->         switch (location) {
#  103|           case Plasma::Types::LeftEdge:
#  104|           case Plasma::Types::RightEdge:

Error: COMPILER_WARNING (CWE-563): [#def27]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelview.cpp: scope_hint: In member function ‘void PanelView::updateExclusiveZone()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/shell/panelview.cpp:1489:10: warning[-Wunused-but-set-variable]: variable ‘exclusiveMargin’ set but not used
# 1489 |     auto exclusiveMargin = [this] {
#      |          ^~~~~~~~~~~~~~~
# 1487|   void PanelView::updateExclusiveZone()
# 1488|   {
# 1489|->     auto exclusiveMargin = [this] {
# 1490|           switch (location()) {
# 1491|           case Plasma::Types::TopEdge:

Error: COMPILER_WARNING (CWE-252): [#def28]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/kcminit/main.cpp: scope_hint: In function ‘void sendReady()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/kcminit/main.cpp:37:10: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#   37 |     write(ready[1], &c, 1);
#      |     ~~~~~^~~~~~~~~~~~~~~~~
#   35|           return;
#   36|       char c = 0;
#   37|->     write(ready[1], &c, 1);
#   38|       close(ready[1]);
#   39|       ready[1] = -1;

Error: COMPILER_WARNING (CWE-252): [#def29]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/kcminit/main.cpp: scope_hint: In function ‘void waitForReady()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/kcminit/main.cpp:46:9: warning[-Wunused-result]: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’
#   46 |     read(ready[0], &c, 1);
#      |     ~~~~^~~~~~~~~~~~~~~~~
#   44|       char c = 1;
#   45|       close(ready[1]);
#   46|->     read(ready[0], &c, 1);
#   47|       close(ready[0]);
#   48|   }

Error: COMPILER_WARNING (CWE-252): [#def30]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/kcminit/main.cpp: scope_hint: In function ‘int main(int, char**)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/kcminit/main.cpp:154:9: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’
#  154 |     pipe(ready);
#      |     ~~~~^~~~~~~
#  152|       // early in the login process), the rest is delayed, so fork and make parent
#  153|       // return after the initial phase
#  154|->     pipe(ready);
#  155|       if (fork() != 0) {
#  156|           waitForReady();

Error: COMPILER_WARNING (CWE-252): [#def31]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/plasma-session/signalhandler.cpp: scope_hint: In static member function ‘static void SignalHandler::signalHandler(int)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/plasma-session/signalhandler.cpp:45:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#   45 |     ::write(signalFd[0], &signal, sizeof(signal));
#      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   43|   void SignalHandler::signalHandler(int signal)
#   44|   {
#   45|->     ::write(signalFd[0], &signal, sizeof(signal));
#   46|   }
#   47|   

Error: COMPILER_WARNING (CWE-252): [#def32]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/plasma-session/signalhandler.cpp: scope_hint: In member function ‘void SignalHandler::handleSignal()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/plasma-session/signalhandler.cpp:52:11: warning[-Wunused-result]: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’
#   52 |     ::read(signalFd[1], &signal, sizeof(signal));
#      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   50|       m_handler->setEnabled(false);
#   51|       int signal;
#   52|->     ::read(signalFd[1], &signal, sizeof(signal));
#   53|       m_handler->setEnabled(true);
#   54|   

Error: COMPILER_WARNING (CWE-563): [#def33]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/startplasma.cpp: scope_hint: In function ‘void {anonymous}::canberraFinishCallback(ca_context*, uint32_t, int, void*)’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/startkde/startplasma.cpp:789:83: warning[-Wunused-parameter]: unused parameter ‘userdata’
#  789 | void canberraFinishCallback(ca_context *c, uint32_t /*id*/, int error_code, void *userdata)
#      |                                                                             ~~~~~~^~~~~~~~
#  787|   namespace
#  788|   {
#  789|-> void canberraFinishCallback(ca_context *c, uint32_t /*id*/, int error_code, void *userdata)
#  790|   {
#  791|       QMetaObject::invokeMethod(

Error: COMPILER_WARNING (CWE-477): [#def34]
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/wallpapers/image/plugin/utils/mediaproxy.cpp: scope_hint: In member function ‘virtual void MediaProxy::componentComplete()’
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/wallpapers/image/plugin/utils/mediaproxy.cpp:55:40: warning[-Wdeprecated-declarations]: ‘void QGuiApplication::paletteChanged(const QPalette&)’ is deprecated: Handle QEvent::ApplicationPaletteChange instead
#   55 |     connect(qGuiApp, &QGuiApplication::paletteChanged, this, &MediaProxy::slotSystemPaletteChanged);
#      |                                        ^~~~~~~~~~~~~~
/usr/include/qt6/QtGui/QGuiApplication:1: included_from: Included from here.
plasma-workspace-6.2.3-build/plasma-workspace-6.2.3/wallpapers/image/plugin/utils/mediaproxy.cpp:13: included_from: Included from here.
/usr/include/qt6/QtGui/qguiapplication.h:161:89: note: declared here
#  161 |     QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationPaletteChange instead") void paletteChanged(const QPalette &pal);
#      |                                                                                         ^~~~~~~~~~~~~~
#   53|   
#   54|       // Follow system color scheme
#   55|->     connect(qGuiApp, &QGuiApplication::paletteChanged, this, &MediaProxy::slotSystemPaletteChanged);
#   56|   
#   57|       processSource();

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-94.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameplasma-workspace-6.2.3-1.fc42
store-results-to/tmp/tmpg26hyk1w/plasma-workspace-6.2.3-1.fc42.tar.xz
time-created2024-11-13 02:48:57
time-finished2024-11-13 03:11:03
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpg26hyk1w/plasma-workspace-6.2.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpg26hyk1w/plasma-workspace-6.2.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9