On 04.04.2024 09:49, Federico Serafini wrote:
> MISRA C:2012 Rule 16.3 states: "An unconditional `break' statement
> shall terminate every switch-clause".
> 
> In order to meet the requirements to deviate the rule:
> 1) refactor the for loop to make the switch-clause ending with a
>    return statement (note that adding a break at the end of the
>    switch-clause would result in a violation of Rule 2.1
>    "A project shall not contain unreachable code");
> 2) add pseudo-keyword fallthrough.
> 
> No functional change.
> 
> Signed-off-by: Federico Serafini <federico.seraf...@bugseng.com>

Reviewed-by: Jan Beulich <jbeul...@suse.com>



Reply via email to