Clang change to "cripple" the warning (rC321691) was not effective for libcxx because we opt-in to Wextra
But since the warning is partitioned now, we could opt-out of this specific one?
Differential D41727
[libcxx] Disable tautological-type-limit-compare warning bcain on Jan 4 2018, 8:54 AM. Authored by
Details
Clang change to "cripple" the warning (rC321691) was not effective for libcxx because we opt-in to Wextra But since the warning is partitioned now, we could opt-out of this specific one?
Diff Detail
Event TimelineComment Actions Note that it won't help for the cases where libc++ is used, and -Wextra -Wsystem-headers is specified. Comment Actions I think that's acceptable and I think we should have known/expected that as of the change to clang. The only real way to mitigate that is with a local pragma to disable the warning for those spots, correct? And I believe that had been proposed and rejected before.
Comment Actions I agree that the change suggested is a good one but from the cfe-dev discussion this change may be obsolete. It sounds like the plan is to remove the warning from Wextra. Comment Actions @bcain Can we land it and then revert it once Clang decides what it's up to? That way we can get the 32bit builder green? |
Why not self.cxx.addWarningFlagIfSupported('-Wno-tautological-type-limit-compare'), like seen on the next lines ?