Skip to content

Conversation

@DeHess
Copy link
Contributor

@DeHess DeHess commented May 2, 2024

Fix coding guideline MISRA C:2012 Rule 15.2 in os:

The goto statement shall jump to a label declared later in the same function.

This PR is part of the enhancement issue #48002 which port the coding guideline fixes done by BUGSENG on the https://github.com/zephyrproject-rtos/zephyr/tree/v2.7-auditable-branch back to main

original commit:
ac487cf

- moved switch clause to avoid backward jump

Signed-off-by: Hess Nathan <nhess@baumer.com>
@zephyrbot zephyrbot requested review from dcpleung and nordic-krch May 2, 2024 12:58
@DeHess DeHess changed the title os: Avoid backwards goto jump Formatting Output: Avoid backwards goto jump May 13, 2024
@nashif nashif added the area: Coding Guidelines Coding guidelines and style label May 27, 2024
@MaureenHelm
Copy link
Member

@nordic-krch please take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants