Skip to content

Resolve Static Analysis Style Errors #481

@arielswalker

Description

@arielswalker

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

uint32_t num_samples;

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions