not treat warnings as error

My colleague reported some warnings are not fixed. But they didn't exist in my machine. 
So revert the modification before fixing all warnings.