kf6-kxmlgui-6.3.0-1.fc41

List of Defects

Error: COMPILER_WARNING: [#def1]
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kaboutapplicationpersonlistdelegate_p.cpp: scope_hint: In function ‘QPixmap KDEPrivate::avatarFallback()’
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kaboutapplicationpersonlistdelegate_p.cpp:30:76: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘KDEPrivate::<unnamed enum>’ and floating-point type ‘qreal’ {aka ‘double’} is deprecated
#   30 |         *s_avatarFallback = icon.pixmap(icon.actualSize(QSize(AVATAR_WIDTH / qGuiApp->devicePixelRatio(), AVATAR_HEIGHT / qGuiApp->devicePixelRatio())),
#      |                                                               ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   28|       if (s_avatarFallback->isNull()) {
#   29|           const QIcon icon = QIcon::fromTheme(QStringLiteral("user"));
#   30|->         *s_avatarFallback = icon.pixmap(icon.actualSize(QSize(AVATAR_WIDTH / qGuiApp->devicePixelRatio(), AVATAR_HEIGHT / qGuiApp->devicePixelRatio())),
#   31|                                           QIcon::Normal,
#   32|                                           QIcon::On);

Error: COMPILER_WARNING: [#def2]
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kaboutapplicationpersonlistdelegate_p.cpp:30:121: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘KDEPrivate::<unnamed enum>’ and floating-point type ‘qreal’ {aka ‘double’} is deprecated
#   30 |         *s_avatarFallback = icon.pixmap(icon.actualSize(QSize(AVATAR_WIDTH / qGuiApp->devicePixelRatio(), AVATAR_HEIGHT / qGuiApp->devicePixelRatio())),
#      |                                                                                                           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   28|       if (s_avatarFallback->isNull()) {
#   29|           const QIcon icon = QIcon::fromTheme(QStringLiteral("user"));
#   30|->         *s_avatarFallback = icon.pixmap(icon.actualSize(QSize(AVATAR_WIDTH / qGuiApp->devicePixelRatio(), AVATAR_HEIGHT / qGuiApp->devicePixelRatio())),
#   31|                                           QIcon::Normal,
#   32|                                           QIcon::On);

Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kabstractaboutdialog_p.cpp: scope_hint: In function ‘QWidget* createAvatarCheck(QWidget*, KDEPrivate::KAboutApplicationPersonModel*)’
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kabstractaboutdialog_p.cpp:142:48: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#  142 |     QObject::connect(avatarsCheck, &QCheckBox::stateChanged, parent, [model](int state) {
#      |                                                ^~~~~~~~~~~~
/usr/include/qt6/QtWidgets/QCheckBox:1: included_from: Included from here.
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kabstractaboutdialog_p.cpp:28: included_from: Included from here.
/usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#  140|           avatarsCheck->setVisible(model->hasAnyAvatars());
#  141|       });
#  142|->     QObject::connect(avatarsCheck, &QCheckBox::stateChanged, parent, [model](int state) {
#  143|           switch (state) {
#  144|           case Qt::Checked:

Error: CLANG_WARNING: [#def4]
kf6-kxmlgui-6.3.0-build/kxmlgui-6.3.0/src/kcheckaccelerators.cpp:112:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'initializer'
#  110|       // This is to prevent using KSharedConfig before main() can set the app name
#  111|       QMetaObject::invokeMethod(initializer, "initiateIfNeeded", Qt::QueuedConnection);
#  112|-> }
#  113|   
#  114|   Q_COREAPP_STARTUP_FUNCTION(startupFunc)

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-88.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kxmlgui-6.3.0-1.fc41
store-results-to/tmp/tmpll0u41oa/kf6-kxmlgui-6.3.0-1.fc41.tar.xz
time-created2024-07-03 14:20:23
time-finished2024-07-03 14:23:07
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpll0u41oa/kf6-kxmlgui-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpll0u41oa/kf6-kxmlgui-6.3.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9