Rationalise compiler warning setup.