linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sparse fooled by double semicolon
@ 2007-01-31  4:50 Pavel Roskin
  2007-01-31  6:58 ` [PATCH] " Christopher Li
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel Roskin @ 2007-01-31  4:50 UTC (permalink / raw)
  To: linux-sparse

Hello!

I have reduced a spurious sparse message to the following test:

#include <string.h>
void test(void)
{
	struct { int foo;; } val;
	memset(&val, 0, sizeof(val));
}

Running sparse on this code gives:

test.c:5:8: warning: memset with byte count of 0

Replacing two semicolons with one fixes the warning.  That's the current
sparse (006eff06c7adcfb0d06c6fadf6e9b64f0488b2bf) with no local changes.

-- 
Regards,
Pavel Roskin

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

end of thread, other threads:[~2007-02-23  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31  4:50 Sparse fooled by double semicolon Pavel Roskin
2007-01-31  6:58 ` [PATCH] " Christopher Li
2007-01-31  7:17   ` [PATCH](take II) " Christopher Li
2007-01-31  7:46     ` Pavel Roskin
2007-02-23  3:43     ` Josh Triplett
2007-01-31  7:43   ` [PATCH] " Pavel Roskin

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).