well the thing is, you can treat warnings as errors within the compiler settings... you can easily switch that on or off and looks like in your case it is switched on.