Avoid unreachable code statements
Opened this issue · 0 comments
mknaranja commented
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.