make warnings configable
Merge pull request #3 from chen3feng/develop

make warnings configable