Fix warnings in the tests
Fix warnings in the main target
Merge pull request #326 from luisobo/fix-warnings

Fix or silent warnings.