check_overflow: handle addresses differently
commitd794b63b7b9690949a7ea379dd08d6b9b9640c70
authorDan Carpenter <error27@gmail.com>
Fri, 8 Jan 2010 09:40:17 +0000 (8 12:40 +0300)
committerDan Carpenter <error27@gmail.com>
Fri, 8 Jan 2010 09:40:17 +0000 (8 12:40 +0300)
tree3e893785d4b68e876c4279e55bbd0515cbeb5262
parent6b16278dd3765ce8abde09547ce3d2f6f64e8e27
check_overflow: handle addresses differently

foo = &array[x]; // this is a "warn:"
bar = array[x]; // this is an "error:"

I wanted to just not print the warn: version but this ends up hiding
enough bugs that I decided against that.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_overflow.c