Correct cppwarning in function declaration
Correct several cppwarnings.