Fix warnings of -Wall -Wextra
Merge pull request #582 from FullName/UnWallWextra

Fix warnings of -Wall -Wextra