Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
plasma-discover-6.1.1-build/discover-6.1.1/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp: scope_hint: In member function ‘FlatpakRemote* FlatpakBackend::installSource(FlatpakResource*)’
plasma-discover-6.1.1-build/discover-6.1.1/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp:1975:14: warning[-Wunused-variable]: unused variable ‘remote’
# 1975 |     if (auto remote = flatpak_installation_get_remote_by_name(preferredInstallation(), resource->flatpakName().toUtf8().constData(), cancellable, nullptr)) {
#      |              ^~~~~~
# 1973|       g_autoptr(GCancellable) cancellable = g_cancellable_new();
# 1974|   
# 1975|->     if (auto remote = flatpak_installation_get_remote_by_name(preferredInstallation(), resource->flatpakName().toUtf8().constData(), cancellable, nullptr)) {
# 1976|           qCWarning(LIBDISCOVER_BACKEND_FLATPAK_LOG) << "Source" << resource->flatpakName() << "already exists in"
# 1977|                                                      << flatpak_installation_get_path(preferredInstallation());

Error: COMPILER_WARNING (CWE-563): [#def2]
plasma-discover-6.1.1-build/discover-6.1.1/libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp: scope_hint: In member function ‘bool FlatpakTransactionThread::end_of_lifed_with_rebase(const char*, const char*, const char*, const char*, const char**)’
plasma-discover-6.1.1-build/discover-6.1.1/libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp:392:69: warning[-Wunused-parameter]: unused parameter ‘reason’
#  392 |                                                         const char *reason,
#      |                                                         ~~~~~~~~~~~~^~~~~~
#  390|   bool FlatpakTransactionThread::end_of_lifed_with_rebase(const char *remote,
#  391|                                                           const char *ref,
#  392|->                                                         const char *reason,
#  393|                                                           const char *rebased_to_ref,
#  394|                                                           const char **previous_ids)

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-188.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameplasma-discover-6.0.3-1.fc40
diffbase-store-results-to/tmp/tmpttplwr0u/plasma-discover-6.0.3-1.fc40.tar.xz
diffbase-time-created2024-07-03 16:59:31
diffbase-time-finished2024-07-03 17:04:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpttplwr0u/plasma-discover-6.0.3-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpttplwr0u/plasma-discover-6.0.3-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-188.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameplasma-discover-6.1.1-1.fc41
store-results-to/tmp/tmp56xq_jux/plasma-discover-6.1.1-1.fc41.tar.xz
time-created2024-07-03 17:05:00
time-finished2024-07-03 17:10:03
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp56xq_jux/plasma-discover-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp56xq_jux/plasma-discover-6.1.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9