修复部分编译器警告

1. 修复部分XCode编译器警告;
2. 整理代码;
3.

Signed-off-by: lei.zhang <lei.a.zhang@dena.com>