Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
gnome-shell-50.0/src/shell-keyring-prompt.c: scope_hint: In function ‘calculate_password_strength’
gnome-shell-50.0/src/shell-keyring-prompt.c:604:14: warning[-Wunused-but-set-variable=]: variable ‘lower’ set but not used
#  604 |   int upper, lower, digit, misc;
#      |              ^~~~~
#  602|   calculate_password_strength (const gchar *password)
#  603|   {
#  604|->   int upper, lower, digit, misc;
#  605|     gdouble pwstrength;
#  606|     int length, i;

Error: COMPILER_WARNING (CWE-704): [#def2]
gnome-shell-50.0/src/shell-util.c: scope_hint: In function ‘shell_util_translate_time_string’
gnome-shell-50.0/src/shell-util.c:165:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  165 |   sep = strchr (str, '\004');
#      |       ^
#  163|     old_loc = uselocale (loc);
#  164|   
#  165|->   sep = strchr (str, '\004');
#  166|     res = g_dpgettext (NULL, str, sep ? sep - str + 1 : 0);
#  167|   

Error: COMPILER_WARNING (CWE-704): [#def3]
gnome-shell-50.0/src/shell-util.c:165:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  163|     old_loc = uselocale (loc);
#  164|   
#  165|->   sep = strchr (str, '\004');
#  166|     res = g_dpgettext (NULL, str, sep ? sep - str + 1 : 0);
#  167|   

Error: COMPILER_WARNING: [#def4]
gnome-shell-50.0/src/st/croco/cr-input.c: scope_hint: In function ‘cr_input_new_from_uri’
gnome-shell-50.0/src/st/croco/cr-input.c:204:17: warning[-Wunused-but-set-variable=]: variable ‘buf_size’ set but not used
#  204 |                 buf_size = 0;
#      |                 ^~~~~~~~
#  202|           gulong nb_read = 0,
#  203|                   len = 0,
#  204|->                 buf_size = 0;
#  205|           gboolean loop = TRUE;
#  206|           guchar *buf = NULL;

Error: COMPILER_WARNING: [#def5]
gnome-shell-50.0/src/st/croco/cr-parser.c: scope_hint: In function ‘cr_parser_parse_expr’
gnome-shell-50.0/src/st/croco/cr-parser.c:3031:16: warning[-Wunused-but-set-variable=]: variable ‘nb_terms’ set but not used
# 3031 |         gulong nb_terms = 0;
#      |                ^~~~~~~~
# 3029|                   *expr2 = NULL;
# 3030|           guchar next_byte = 0;
# 3031|->         gulong nb_terms = 0;
# 3032|   
# 3033|           g_return_val_if_fail (a_this && PRIVATE (a_this)

Error: COMPILER_WARNING (CWE-704): [#def6]
gnome-shell-50.0/src/st/croco/cr-rgb.c: scope_hint: In function ‘cr_rgb_set_from_name’
gnome-shell-50.0/src/st/croco/cr-rgb.c:405:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  405 |         result = bsearch (a_color_name,
#      |                ^
#  403|           g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR);
#  404|   
#  405|->         result = bsearch (a_color_name,
#  406|                             gv_standard_colors,
#  407|                             G_N_ELEMENTS (gv_standard_colors),

Error: COMPILER_WARNING (CWE-704): [#def7]
gnome-shell-50.0/src/st/croco/cr-rgb.c:405:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  403|           g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR);
#  404|   
#  405|->         result = bsearch (a_color_name,
#  406|                             gv_standard_colors,
#  407|                             G_N_ELEMENTS (gv_standard_colors),

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-251.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegnome-shell-50.2-2.fc45
diffbase-store-results-to/tmp/tmpxd2sb7iq/gnome-shell-50.2-2.fc45.tar.xz
diffbase-time-created2026-06-01 12:30:09
diffbase-time-finished2026-06-01 12:33:33
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpxd2sb7iq/gnome-shell-50.2-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxd2sb7iq/gnome-shell-50.2-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-251.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegnome-shell-50.0-1.fc44
store-results-to/tmp/tmplbc712i4/gnome-shell-50.0-1.fc44.tar.xz
time-created2026-06-01 12:26:02
time-finished2026-06-01 12:29:57
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmplbc712i4/gnome-shell-50.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplbc712i4/gnome-shell-50.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9