[PATCH] More portability fixes
Denys Vlasenko
vda.linux at googlemail.com
Thu Sep 24 18:07:34 UTC 2009
On Thursday 24 September 2009 14:56, Tito wrote:
> On Wednesday 23 September 2009 22:56:34 Mikhail Gusarov wrote:
> >
> > Twas brillig at 10:02:35 23.09.2009 UTC+02 when farmatito at tiscali.it did gyre and gimble:
> >
> > T> c++ style // comments
> >
> > It's a C99-style // comments.
> >
>
> Hi,
> yes I know, but it issues a warning for example with -pedantic
> unless you specify -std=c99 on the commandline.
>
> #include <stdio.h>
> int main(int argc, char **argv)
> {
> int i = 99;
> printf("prova c%d", i);
> // pippo
> //pluto
> //paperino
> return 0;
>
>
> gcc -pedantic test.c -o test
> test.c:6:2: warning: C++ style comments are not allowed in ISO C90
> test.c:6:2: warning: (this will be reported only once per input file)
>
> It is really not a big problem, but i think that there is no need
> to mix the 2 standards.
There is. If you are more permissive, you attract more developers.
--
vda
More information about the busybox
mailing list