remove unused variable
add explicit cast for sample_weight
add explicit cast for global_weight
add explicit cast for num_features
add explicit conversion from pointer to bool
use fail instead of operator bool
Merge pull request #597 from jubatus/fix-compiler-warnings

Fix compiler warnings