Change compiler error checking level, fix the code accordingly.