linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* inline declaration and assignment
@ 2008-11-11  6:24 Matt
  2008-11-15 12:20 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Matt @ 2008-11-11  6:24 UTC (permalink / raw)
  To: linux-sparse

Hi,

I'm playing with smatch and noticed that an inline assignment doesn't seem 
to get parsed as such. There's a couple of examples, but this one in 
sparse's own parse.c (line 1480) is probably the best:
   struct ident *ident = NULL;


sparse doesn't seem to identify this as an assignment, only a declaration. 
as a result, smatch gives this false positive:
parse.c +1487 undefined param add_expression 1


Sorry if I'm incorrectly diagnosing the problem; I'm just diving into the 
code for the first time this evening :)

Thanks in advance for any help!

--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-15 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11  6:24 inline declaration and assignment Matt
2008-11-15 12:20 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).