Disable Linux warnings without producing Mac warnings.