unreachable code: don't warn about unreachable break statements
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Dec 2013 15:23:39 +0000 (18:23 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Dec 2013 15:23:39 +0000 (18:23 +0300)
commit33f400b44e2323853c868f1feebe424ae176a711
tree586c25e52d57a76495f49c376e7b7c828a8810ac
parentef15ecba0ed25ef32cdd31fe07ff564faba14a6f
unreachable code: don't warn about unreachable break statements

A lot of people do stuff like:

switch (foo) {
case X:
....
return ret;
break;
case Y:

I think it sucks when people do this.  Smatch used to warn about it when
--spammy was enabled, but actually I never sent patches for these.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_flow.c