Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
gdm-46.0-build/gdm-46.0/libgdm/gdm-sessions.c:78:17: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   76|   
#   77|           if (ret == 0)
#   78|->                 ret = sd_uid_get_display (uid, &session_id);
#   79|           else
#   80|                   ret = sd_pid_get_session (pid, &session_id);

Error: CLANG_WARNING: [#def2]
gdm-46.0-build/gdm-46.0/libgdm/gdm-sessions.c:80:17: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   78|                   ret = sd_uid_get_display (uid, &session_id);
#   79|           else
#   80|->                 ret = sd_pid_get_session (pid, &session_id);
#   81|   
#   82|           return g_steal_pointer (&session_id);

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-195.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegdm-46.2-1.fc41
diffbase-store-results-to/tmp/tmp94briwox/gdm-46.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:47:46
diffbase-time-finished2024-07-03 12:49:54
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp94briwox/gdm-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp94briwox/gdm-46.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-195.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegdm-46.0-1.fc40
store-results-to/tmp/tmpmh9wc2dy/gdm-46.0-1.fc40.tar.xz
time-created2024-07-03 12:45:02
time-finished2024-07-03 12:47:38
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmh9wc2dy/gdm-46.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpmh9wc2dy/gdm-46.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9