fixed compiler warnings in parser when using -O2