fix warnings
Merge pull request #1 from kroepke/master

Warnings galore