* comparisons yield bool instead of int?
@ 2012-07-13 21:49 Ben Pfaff
0 siblings, 0 replies; only message in thread
From: Ben Pfaff @ 2012-07-13 21:49 UTC (permalink / raw)
To: linux-sparse
The C standard says that equality operators yield "int", but sparse
thinks that they yield "bool":
blp@sigsegv:~/sparse$ cat test.c
static void f(void)
{
sizeof(1 == 2);
}
blp@sigsegv:~/sparse$ ./sparse test.c
test.c:3:4: warning: expression using sizeof bool
blp@sigsegv:~/sparse$ git rev-parse HEAD
970d7169d75068146152ba01a66381c800dbeb71
Thanks,
Ben.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-13 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-13 21:49 comparisons yield bool instead of int? Ben Pfaff
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).