Print an error for this: if (a | b) { ...
commitfa75482ec2f548cb6d4c799497b49829fb81df5f
authorDan Carpenter <error27@gmail.com>
Sun, 6 Sep 2009 13:29:56 +0000 (6 15:29 +0200)
committerDan Carpenter <error27@gmail.com>
Sun, 6 Sep 2009 13:29:56 +0000 (6 15:29 +0200)
tree5fba0426b849058d45b5ab482410fe0327608787
parentef188a55383a26de5f006daabe9a453078c58455
Print an error for this:  if (a | b) { ...

Doing a bitwise or inside a condition is often a silly thing.  Maybe
you wanted a bitwise and or a regular or.

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