Error: COMPILER_WARNING (CWE-704): [#def1] gnome-session-48.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_set_inhibitors’ gnome-session-48.0/gnome-session/gsm-systemd.c:958:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type # 958 | gsm_systemd_call_inhibit (manager, locks); # | ^~~~~ gnome-session-48.0/gnome-session/gsm-systemd.c:918:39: note: expected ‘char *’ but argument is of type ‘const gchar *’ {aka ‘const char *’} # 918 | char *what) # | ~~~~~~~~~~~~^~~~ # 956| if (locks != NULL) { # 957| g_debug ("Adding system inhibitor on %s", locks); # 958|-> gsm_systemd_call_inhibit (manager, locks); # 959| } else { # 960| drop_system_inhibitor (manager); Error: COMPILER_WARNING (CWE-704): [#def2] gnome-session-48.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_reacquire_inhibitors’ gnome-session-48.0/gnome-session/gsm-systemd.c:970:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type # 970 | gsm_systemd_call_inhibit (manager, locks); # | ^~~~~ gnome-session-48.0/gnome-session/gsm-systemd.c:918:39: note: expected ‘char *’ but argument is of type ‘const gchar *’ {aka ‘const char *’} # 918 | char *what) # | ~~~~~~~~~~~~^~~~ # 968| if (locks != NULL) { # 969| g_debug ("Reacquiring system inhibitor on %s", locks); # 970|-> gsm_systemd_call_inhibit (manager, locks); # 971| } else { # 972| drop_system_inhibitor (manager); Error: COMPILER_WARNING (CWE-704): [#def3] gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:958:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type # 956| if (locks != NULL) { # 957| g_debug ("Adding system inhibitor on %s", locks); # 958|-> gsm_systemd_call_inhibit (manager, locks); # 959| } else { # 960| drop_system_inhibitor (manager); Error: COMPILER_WARNING (CWE-704): [#def4] gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:970:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type # 968| if (locks != NULL) { # 969| g_debug ("Reacquiring system inhibitor on %s", locks); # 970|-> gsm_systemd_call_inhibit (manager, locks); # 971| } else { # 972| drop_system_inhibitor (manager);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.86.0 |
diffbase-analyzer-version-cppcheck | 2.17.1 |
diffbase-analyzer-version-gcc | 15.0.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.1 |
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-16.us-west-2.compute.internal |
diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
diffbase-mock-config | fedora-rawhide-x86_64 |
diffbase-project-name | gnome-session-47.0.1-2.fc42 |
diffbase-store-results-to | /tmp/tmp3q6hkifm/gnome-session-47.0.1-2.fc42.tar.xz |
diffbase-time-created | 2025-04-25 12:43:06 |
diffbase-time-finished | 2025-04-25 12:45:12 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp3q6hkifm/gnome-session-47.0.1-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3q6hkifm/gnome-session-47.0.1-2.fc42.src.rpm' |
diffbase-tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-16.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | gnome-session-48.0-1.fc43 |
store-results-to | /tmp/tmpjb95qz5y/gnome-session-48.0-1.fc43.tar.xz |
time-created | 2025-04-25 12:45:30 |
time-finished | 2025-04-25 12:47:12 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpjb95qz5y/gnome-session-48.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjb95qz5y/gnome-session-48.0-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |