[PATCH] More portability fixes

Tito farmatito at tiscali.it
Thu Sep 24 12:56:43 UTC 2009


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.

BTW.: style-guide.txt shows only examples with /* */

Just my 2 cents.

Ciao,
Tito


More information about the busybox mailing list