![]() | |||||||||||||
Messages in this thread |
On Mon, 18 Oct 2004, Andrew Morton wrote: > Matthias Andree <matthias.andree@gmx.de> wrote: > > > > include/linux/compiler.h:20: syntax error in macro parameter list > > I used this: > > diff -puN include/linux/compiler.h~builtin_warning-is-not-traditional include/linux/compiler.h > --- 25/include/linux/compiler.h~builtin_warning-is-not-traditional 2004-10-18 22:08:25.224796488 -0700 > +++ 25-akpm/include/linux/compiler.h 2004-10-18 22:09:05.505672864 -0700 > @@ -17,7 +17,9 @@ extern void __chk_io_ptr(void __iomem *) > # define __iomem > # define __chk_user_ptr(x) (void)0 > # define __chk_io_ptr(x) (void)0 > -#define __builtin_warning(x, ...) (1) > +#ifndef __ASSEMBLY__ /* gcc -traditional fails with varargs-style macros */ > +# define __builtin_warning(x, ...) (1) > +#endif > #endif This fixes the problem for me with SuSE's gcc-3.3.3-41, with pristine gcc-3.3.4 and gcc-3.4.2. Thank you! -- Matthias Andree - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 14:07 [from the cache] ©2003-2008 | |||||||||||||