remove unused variable
fix missing return value
Merge pull request #207 from mikeferguson/fix_warnings

Fix warnings