[LLVMdev] fix warning with newer g++ compilers

Duncan Sands baldrick at free.fr
Sat Dec 15 02:13:12 PST 2007


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.

Ciao,

Duncan.



More information about the llvm-dev mailing list