check_unused_ret.c: ignore unreachable assignments
commit1a6a2c67311ab318563e82f641ddf0cd3eddd579
authorDan Carpenter <error27@gmail.com>
Fri, 18 Dec 2009 20:35:42 +0000 (18 22:35 +0200)
committerDan Carpenter <error27@gmail.com>
Fri, 18 Dec 2009 20:35:42 +0000 (18 22:35 +0200)
tree95399711764fe64983d77e2dbd303ba9b8ab9449
parent866d8470a1929c21145ca1498f6aca32a213e93f
check_unused_ret.c: ignore unreachable assignments

If the code is unreachable set_state() doesn't do anything.  So if we add
it to the assignment list we will never be able to remove it.  Which
causes all unreachable assignments to be false positives.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_unused_ret.c
smatch.h
smatch_states.c