fix compile warning about endline