trivial fixes for warnings
fix missing return value
Merge pull request #535 from mikeferguson/fix_warnings

Fix warnings