Add a check for unused assignments.
commit3fd2c842e09b9847175e044fd699ca75ff8c8233
authorDan Carpenter <error27@gmail.com>
Thu, 17 Dec 2009 21:40:46 +0000 (17 23:40 +0200)
committerDan Carpenter <error27@gmail.com>
Thu, 17 Dec 2009 21:40:46 +0000 (17 23:40 +0200)
treeec3bf48a8850cecab7aacd60711e77eb89125ee7
parent5570be2b0b15620f8ee74c16312b864a40550f08
Add a check for unused assignments.

x = foo();  // <-- pointless
x = bar();

The problem is that this test relies on --two-passes and --two-passes
causes tons of false positives in the other tests...  :/

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_unused_ret.c [new file with mode: 0644]
smatch.c