clean code with GCC warning
Merge pull request #375 from coolwanglu/clean_warning

clean code with GCC warning