Skip to content

OSAL Return Results Ignored #215

@MaciejKaszynski

Description

@MaciejKaszynski

What

There are many cases where calls in the osal component return an OsalReturn but the caller doesn't check the result.

We should set all return types that can error in the Osal component as [[nodiscard]] and fix the warnings.
We could also set the actual OsalReturnType as [[nodiscard]] either is fine.

Acceptance Criteria (DoD)

  • All methods in the osal with errors are marked with [[nodiscard]]
  • All warnings for no discard are fixed

How

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Task.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions