libkscreen-6.2.3-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.cpp:92:33: warning[-Wdeprecated-declarations]: ‘bool QVariant::canConvert(int) const’ is deprecated
#   92 |             if (value.canConvert(property.type())) {
#      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
#  354 |     bool canConvert(int targetTypeId) const
#      |          ^~~~~~~~~~
#   90|           if (property.isValid()) {
#   91|               QVariant value = iter.value();
#   92|->             if (value.canConvert(property.type())) {
#   93|                   value.convert(property.type());
#   94|                   object->setProperty(iter.key().toLatin1().constData(), value);

Error: COMPILER_WARNING (CWE-477): [#def2]
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.cpp: scope_hint: In static member function ‘static void Parser::qvariant2qobject(const QVariantMap&, QObject*)’
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.cpp:92:47: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   92 |             if (value.canConvert(property.type())) {
#      |                                  ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/QVariant:1: included_from: Included from here.
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.h:14: included_from: Included from here.
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.cpp:7: included_from: Included from here.
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
#  433 |     Type type() const
#      |          ^~~~
#   90|           if (property.isValid()) {
#   91|               QVariant value = iter.value();
#   92|->             if (value.canConvert(property.type())) {
#   93|                   value.convert(property.type());
#   94|                   object->setProperty(iter.key().toLatin1().constData(), value);

Error: COMPILER_WARNING (CWE-477): [#def3]
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.cpp:93:30: warning[-Wdeprecated-declarations]: ‘bool QVariant::convert(int)’ is deprecated
#   93 |                 value.convert(property.type());
#      |                 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:357:10: note: declared here
#  357 |     bool convert(int targetTypeId)
#      |          ^~~~~~~
#   91|               QVariant value = iter.value();
#   92|               if (value.canConvert(property.type())) {
#   93|->                 value.convert(property.type());
#   94|                   object->setProperty(iter.key().toLatin1().constData(), value);
#   95|               } else if (QLatin1String("QVariant") == QLatin1String(property.typeName())) {

Error: COMPILER_WARNING (CWE-477): [#def4]
libkscreen-6.2.3-build/libkscreen-6.2.3/backends/fake/parser.cpp:93:44: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   93 |                 value.convert(property.type());
#      |                               ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
#  433 |     Type type() const
#      |          ^~~~
#   91|               QVariant value = iter.value();
#   92|               if (value.canConvert(property.type())) {
#   93|->                 value.convert(property.type());
#   94|                   object->setProperty(iter.key().toLatin1().constData(), value);
#   95|               } else if (QLatin1String("QVariant") == QLatin1String(property.typeName())) {

Error: COMPILER_WARNING (CWE-457): [#def5]
libkscreen-6.2.3-build/libkscreen-6.2.3/src/libdpms/waylanddpmshelper.cpp: scope_hint: In member function ‘org_kde_kwin_dpms_done’
libkscreen-6.2.3-build/libkscreen-6.2.3/src/libdpms/waylanddpmshelper.cpp:53:29: warning[-Wmaybe-uninitialized]: ‘mode’ may be used uninitialized
#   53 |         KScreen::Dpms::Mode mode;
#      |                             ^
#   51|       {
#   52|           m_supported = m_pendingSupported;
#   53|->         KScreen::Dpms::Mode mode;
#   54|           switch (m_mode) {
#   55|           case Dpms::mode_On:

Error: COMPILER_WARNING (CWE-457): [#def6]
libkscreen-6.2.3-build/libkscreen-6.2.3/src/libdpms/waylanddpmshelper.cpp: scope_hint: In member function ‘Dpms::org_kde_kwin_dpms_done()’
libkscreen-6.2.3-build/libkscreen-6.2.3/src/libdpms/waylanddpmshelper.cpp:69:39: warning[-Wmaybe-uninitialized]: ‘mode’ may be used uninitialized
#   69 |             Q_EMIT m_dpms->modeChanged(mode, m_screen);
#      |                    ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
libkscreen-6.2.3-build/libkscreen-6.2.3/src/libdpms/waylanddpmshelper.cpp:53:29: note: ‘mode’ was declared here
#   53 |         KScreen::Dpms::Mode mode;
#      |                             ^~~~
#   67|           }
#   68|           if (m_dpms) {
#   69|->             Q_EMIT m_dpms->modeChanged(mode, m_screen);
#   70|           }
#   71|       }

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-187.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibkscreen-6.2.3-1.fc42
store-results-to/tmp/tmp06491n1v/libkscreen-6.2.3-1.fc42.tar.xz
time-created2024-11-13 01:30:45
time-finished2024-11-13 01:33:08
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp06491n1v/libkscreen-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/tmp06491n1v/libkscreen-6.2.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9