On Fri, 2007-02-02 at 14:10 -0800, Christopher Li wrote: > On Fri, Feb 02, 2007 at 05:30:37PM -0500, Pavel Roskin wrote: > > > > You need -Wundef or -Wall to check for undefined preprocessor symbols. > > > > $ sparse -Wundef test.c > > test.c:1:5: warning: undefined preprocessor identifier > > 'SYMBOL_NOT_DEFINED' > > test.c:4:2: warning: "not defined" > > Ha, I see. So do you still want some thing more than -Wno-undef? My intention was that we always allow boolean operations of undefined cpp symbols, regardless of the flags. Since Linus wants the existing strictness of -Wundef for the kernel, and the kernel is sparse's "number one customer", I'll need to think of something better to accommodate both the kernel and the userspace. -- Regards, Pavel Roskin - 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