[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: preprocessor/2881: code inside "#if 0" generates warnings with -pedantic



Markus F.X.J. Oberhumer wrote:-

> #if 0
> // int bar =3D 1;
> #endif

Zack, what's you opinion of this?  Whether we accept the // can
affect tokenisation, which must still be valid in skipped blocks.

In other words, acceptance of

#if 0
// '
#endif

depends upon whether we accept //.  I'm tempted to leave it as it is,
but we can turn of the warning if you think it's inappropriate.

Neil.



Reply to: