Skip to content
Commit 7abe39c6 authored by Patryk Duda's avatar Patryk Duda Committed by Anas Nashif
Browse files

libc: minimal: Add 'break' to suppress fall-through error in atoi.c



Compiling using clang fails with following error:

error: unannotated fall-through between switch labels
[-Werror,-Wimplicit-fallthrough]

Actually, missing 'break' statement is not an error here because
the next label is 'default' which contains 'break' only. For the same
reason we can add it to silence the compiler.

Signed-off-by: default avatarPatryk Duda <pdk@semihalf.com>
parent 6fc58718
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment