Error: COMPILER_WARNING (CWE-563): [#def1] gdm-47.0-build/gdm-47.0/daemon/gdm-local-display-factory.c:279:29: warning[-Wunused-variable]: unused variable ‘key’ # 279 | const char *key = display_server_configuration[i].key; # | ^~~ # 277| # 278| for (i = 0; display_server_configuration[i].display_server != NULL; i++) { # 279|-> const char *key = display_server_configuration[i].key; # 280| const char *binary = display_server_configuration[i].binary; # 281| gboolean enabled = FALSE; Error: COMPILER_WARNING (CWE-563): [#def2] gdm-47.0-build/gdm-47.0/daemon/gdm-local-display-factory.c: scope_hint: In function ‘display_server_enabled’ gdm-47.0-build/gdm-47.0/daemon/gdm-local-display-factory.c:281:26: warning[-Wunused-variable]: unused variable ‘enabled’ # 281 | gboolean enabled = FALSE; # | ^~~~~~~ # 279| const char *key = display_server_configuration[i].key; # 280| const char *binary = display_server_configuration[i].binary; # 281|-> gboolean enabled = FALSE; # 282| # 283| if (!g_str_equal (display_server_configuration[i].display_server, Error: COMPILER_WARNING (CWE-563): [#def3] gdm-47.0-build/gdm-47.0/daemon/gdm-local-display-factory.c:324:18: warning[-Wunused-but-set-variable]: variable ‘wayland_preferred’ set but not used # 324 | gboolean wayland_preferred = FALSE; # | ^~~~~~~~~~~~~~~~~ # 322| g_autofree gchar *preferred_display_server = NULL; # 323| const char *fallback_display_server = NULL; # 324|-> gboolean wayland_preferred = FALSE; # 325| gboolean xorg_preferred = FALSE; # 326| g_autoptr (GPtrArray) session_types_array = NULL; Error: COMPILER_WARNING (CWE-563): [#def4] gdm-47.0-build/gdm-47.0/daemon/gdm-local-display-factory.c: scope_hint: In function ‘gdm_local_display_factory_get_session_types’ gdm-47.0-build/gdm-47.0/daemon/gdm-local-display-factory.c:325:18: warning[-Wunused-but-set-variable]: variable ‘xorg_preferred’ set but not used # 325 | gboolean xorg_preferred = FALSE; # | ^~~~~~~~~~~~~~ # 323| const char *fallback_display_server = NULL; # 324| gboolean wayland_preferred = FALSE; # 325|-> gboolean xorg_preferred = FALSE; # 326| g_autoptr (GPtrArray) session_types_array = NULL; # 327| char **session_types; Error: COMPILER_WARNING (CWE-1164): [#def5] gdm-47.0-build/gdm-47.0/daemon/gdm-manager.c:1412:1: warning[-Wunused-function]: ‘set_up_chooser_session’ defined but not used # 1412 | set_up_chooser_session (GdmManager *manager, # | ^~~~~~~~~~~~~~~~~~~~~~ # 1410| # 1411| static void # 1412|-> set_up_chooser_session (GdmManager *manager, # 1413| GdmDisplay *display) # 1414| { Error: COMPILER_WARNING (CWE-563): [#def6] gdm-47.0-build/gdm-47.0/daemon/gdm-session-worker.c: scope_hint: In function ‘set_up_for_current_vt’ gdm-47.0-build/gdm-47.0/daemon/gdm-session-worker.c:2350:32: warning[-Wunused-variable]: unused variable ‘pam_xauth’ # 2350 | struct pam_xauth_data *pam_xauth; # | ^~~~~~~~~ # 2348| { # 2349| #ifdef PAM_XAUTHDATA # 2350|-> struct pam_xauth_data *pam_xauth; # 2351| #endif # 2352| g_autofree char *pam_tty = NULL;
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-169.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | gdm-46.2-4.fc41 |
diffbase-store-results-to | /tmp/tmpe0z2hcip/gdm-46.2-4.fc41.tar.xz |
diffbase-time-created | 2024-11-12 23:52:27 |
diffbase-time-finished | 2024-11-12 23:55:24 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpe0z2hcip/gdm-46.2-4.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpe0z2hcip/gdm-46.2-4.fc41.src.rpm' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-169.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gdm-47.0-2.fc42 |
store-results-to | /tmp/tmpvysw3i_v/gdm-47.0-2.fc42.tar.xz |
time-created | 2024-11-12 23:55:52 |
time-finished | 2024-11-12 23:58:04 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpvysw3i_v/gdm-47.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvysw3i_v/gdm-47.0-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |