On Thu, Dec 18, 2008 at 04:52, Derek M Jones <derek@xxxxxxxxxxxx> wrote: > All, > >> I have reported the bug in gcc. Track Bug: 38563 >> at: gcc.gnu.org/bugzilla > > A very prompt response from a gcc maintainer, bug 38563 > is a duplicate of bug 22086. > > "This is a GCC extension. sizeof(void) is invalid C and should error out > and does with -pedantic-errors" > > Yuk, who ever thought to use -pedantic-errors! > > -ansi or -std=c89 or -std=c99 don't elicit any diagnostics. I don't really see why you take this as a tragedy. People seem to like this extension: linux/linux-2.6$ make -j 8 CC='gcc -Wpointer-arith' 2>&1 | grep 'warning: pointer of type \'void \*\' used in arithmetic' | uniq | wc -l 45095 And anyway, that's how gcc works, so sparse can only follow. P.S: Dear sir, can you imagine, in Russia, they put pieces of lemon in their tea! And you worry about gcc being wrong. /humor -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html