[LLVMdev] fix warning with newer g++ compilers

Dale Johannesen
Sat, 15 Dec 2007 20:45:04 -0000

On Dec 15, 2007, at 2:13 AM, Duncan Sands wrote:

> Hi,
>
>> -    for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr);
>> +    for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) ;
>
> personally I like
>
> 	for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) {}
>
> better since it is more explicit.

I think the bikeshed should be orange:

	for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr)
              ;