Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unreachable code statements #17

Open
mknaranja opened this issue Mar 27, 2023 · 0 comments
Open

Avoid unreachable code statements #17

mknaranja opened this issue Mar 27, 2023 · 0 comments

Comments

@mknaranja
Copy link
Member

When compiling our software currently returns some unreachable code statements

warning: statement is unreachable [code_is_unreachable]
                      break;

which are partially due to breaks after throw commands. I am not 100% sure if the break can just be removed as the throw could be in a try/catch. Some discussion is here: https://stackoverflow.com/questions/16854308/do-i-need-a-return-after-throwing-exception-c-and-c which should be studied in detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant