Describe the bug
The static analysis workflow finds four style errors:
One constParameter error, Parameter 'argv' can be declared as const array, for
|
static int is_argv_end(const struct parg_state *ps, int argc, char *const argv[]) |
One unreadVariable error, Variable 'taskname[16-1]' is assigned a value that is never used, for
|
taskname[CFE_PSP_KERNEL_NAME_LENGTH_MAX - 1] = 0; |
Two unusedStructMember errors. One is struct member 'linux_sysmon_cpuload_state::num_samples' is never used for
The other is struct member 'linux_sysmon_cpuload_state::last_sample_time' is never used for
|
uint64_t last_sample_time; |
To Reproduce
Run the static analysis workflow
Expected behavior
The workflow should run successfully
System observed on:
GitHub Actions
Reporter Info
Ariel Walker, MCSG TECH.
Describe the bug
The static analysis workflow finds four style errors:
One constParameter error, Parameter 'argv' can be declared as const array, for
PSP/fsw/generic-vxworks-rtp/parg/parg.c
Line 33 in 0ea2a47
One unreadVariable error, Variable 'taskname[16-1]' is assigned a value that is never used, for
PSP/fsw/generic-vxworks-rtp/src/cfe_psp_start.c
Line 242 in 0ea2a47
Two unusedStructMember errors. One is struct member 'linux_sysmon_cpuload_state::num_samples' is never used for
PSP/fsw/modules/linux_sysmon/linux_sysmon.c
Line 70 in 0ea2a47
The other is struct member 'linux_sysmon_cpuload_state::last_sample_time' is never used for
PSP/fsw/modules/linux_sysmon/linux_sysmon.c
Line 71 in 0ea2a47
To Reproduce
Run the static analysis workflow
Expected behavior
The workflow should run successfully
System observed on:
GitHub Actions
Reporter Info
Ariel Walker, MCSG TECH.