Messages in this thread | | | Date | Sun, 07 Mar 2004 14:58:51 -0500 | From | Jeff Garzik <> | Subject | Re: Linux 2.4.26-pre2 |
| |
Rene Herman wrote: > David Weinehall wrote: > >>>> In standard C we declare all variables at the top of a function. While >>>> some compilers allow extension, it is not a good idea to get used to >>>> them if we want portable code. >>> >>> >>> Oh, come on. This is _kernel_ code, it won't ever be compiled with >>> anything >>> not GCC-compatible. >> >> >> Ugly warts don't become any less ugly just because gcc accepts them... > > > Mixing code and declarations is also c99. For (a sane) gcc specifically, > you have to tell it -std=c89 -pedantic to have it even complain.
Agreed, with the proviso s/sane/new/
We want to support older gccs that do not support the C99/C++ syntax, for now.
Jeff
- 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/
| |