stored_conditions: don't store constants
commit140351f62061b78b39675afb18ba4fb3d5bd537d
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Apr 2014 12:21:01 +0000 (10 15:21 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Apr 2014 12:21:01 +0000 (10 15:21 +0300)
treea6b6ceb94bae1a64ed7186c83d859a8b6cccc4b3
parentbb188f970b875c3de2ac7d87cc9019d623974d8e
stored_conditions: don't store constants

There are many times where we do:

do { ... } while (0);

The smatch_stored_conditions.c file is supposed to record conditions so
that we can track them for when they are checked again.  It doesn't make
sense to talk about that for constants.

The other thing is that this was causing some unreachable code warnings.

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