Handle declarations inside switch statement blocks.
commit08590aa42859df144c1840b1cce7f87c5ad31776
authorDan Carpenter <error27@gmail.com>
Sun, 22 Feb 2009 21:00:13 +0000 (23 00:00 +0300)
committerDan Carpenter <error27@gmail.com>
Sun, 22 Feb 2009 21:00:13 +0000 (23 00:00 +0300)
treed47b94f1b64bcd1120062dbb6605e774ce3410d4
parentd96688540b4b07990af80812d857c36c6dbe3096
Handle declarations inside switch statement blocks.

This is a bit hacky.  I don't want that area to be unreachable so I removed
the nullify path.  But unfortunately states set there still aren't stored
past the first break statement.

Also you can declare variables in any compound statement not just inside
switch statements.  This is still not handled:

return;
{ int a;
foo:

According to smatch the line declaring "a" is unreachable.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_flow.c