db: take static vs global into consideration wit function pointers
commitbba26aeafd6999994624b1ecc5c709992a972c0f
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Feb 2013 06:55:23 +0000 (7 09:55 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Feb 2013 06:55:23 +0000 (7 09:55 +0300)
tree1c9d05a7dcb1c1055d6248d4fd70916283da9827
parent72a9d77a410d1bd5870258ba5b6a736d5f88c6a1
db: take static vs global into consideration wit function pointers

If we're going to save a function pointer to a static function it has to
be done in the same file where the function is defined.

Before it would say the function was called as a pointer when it wasn't
and we'd think all kinds of bogus values passed were passed to it.  This
silences some false positives.

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