flow: don't print duplicate "unreachable code" warnings
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 20 Apr 2013 11:07:15 +0000 (14:07 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 20 Apr 2013 11:07:15 +0000 (14:07 +0300)
commit16e53ce0d96ed9972a12fb0a6c40b8fa4762d6df
tree5312dcecc56f0fedf9620eb7911f7fbef396e66e
parent9a118ecc74d7ea27e4eb3f382d946f79e20b266d
flow: don't print duplicate "unreachable code" warnings

We don't print these warnings inside inline functions but the flag to say
if the warning had been printed or not was getting reset.  It meant that
the unreachable warning message was printed on multiple lines instead of
just the first.

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