Add missing return for non-void function
Fix typo
Add missing return for non-void function
Merge pull request #59 from AMDmi3/warnings

Fix some warnings