Error: COMPILER_WARNING (CWE-563): [#def1] grub2-2.06-build/grub-2.06/grub-core/commands/search.c:205:31: warning[-Wunused-variable]: unused variable ‘dev’ # 205 | grub_device_t dev, dev_part; # | ^~~ # 203| name_disk != NULL && *name_disk != '\0') # 204| { # 205|-> grub_device_t dev, dev_part; # 206| # 207| if (is_device_usb(name) && !is_device_usb(root_dev)) Error: COMPILER_WARNING (CWE-563): [#def2] grub2-2.06-build/grub-2.06/grub-core/commands/search.c:205:36: warning[-Wunused-variable]: unused variable ‘dev_part’ # 205 | grub_device_t dev, dev_part; # | ^~~~~~~~ # 203| name_disk != NULL && *name_disk != '\0') # 204| { # 205|-> grub_device_t dev, dev_part; # 206| # 207| if (is_device_usb(name) && !is_device_usb(root_dev)) Error: COMPILER_WARNING (CWE-563): [#def3] grub2-2.06-build/grub-2.06/grub-core/commands/search.c:210:25: warning[-Wunused-variable]: unused variable ‘longlist’ # 210 | int longlist = 0; # | ^~~~~~~~ # 208| { # 209| char *quid_name = NULL; # 210|-> int longlist = 0; # 211| struct uuid_context uuid_ctx; # 212| int ret = 0; Error: COMPILER_WARNING (CWE-704): [#def4] grub2-2.06-build/grub-2.06/grub-core/commands/search_file.c:5: included_from: Included from here. grub2-2.06-build/grub-2.06/grub-core/commands/search.c: scope_hint: In function ‘iterate_device’ grub2-2.06-build/grub-2.06/grub-core/commands/search.c:217:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 215| if (!grub_strcmp(quid_name, ctx->key)) # 216| { # 217|-> uuid_ctx.name = name; # 218| uuid_ctx.uuid = quid_name; # 219|
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-29.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | grub2-2.06-119.fc40 |
diffbase-store-results-to | /tmp/tmpbjt4yf4d/grub2-2.06-119.fc40.tar.xz |
diffbase-time-created | 2024-07-03 13:10:04 |
diffbase-time-finished | 2024-07-03 13:32:25 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbjt4yf4d/grub2-2.06-119.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpbjt4yf4d/grub2-2.06-119.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-29.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | grub2-2.06-124.fc41 |
store-results-to | /tmp/tmp6dqmqws5/grub2-2.06-124.fc41.tar.xz |
time-created | 2024-07-03 13:32:41 |
time-finished | 2024-07-03 13:54:36 |
title | Newly introduced defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6dqmqws5/grub2-2.06-124.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp6dqmqws5/grub2-2.06-124.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |