mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
Bug 1571855 - Disable tautology warning in nsIFrame.h in Clang. r=heycam
ClassID::nsBox_id is zero, so that case is trivial. Disable the warning in Clang, like it is in GCC. The Clang pragma can't be behind an #elseif because Clang appears to define __GNUC__, too. Differential Revision: https://phabricator.services.mozilla.com/D40866 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d70ac780cb
commit
92d2ef8571
@ -2805,6 +2805,10 @@ class nsIFrame : public nsQueryFrame {
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wtautological-unsigned-zero-compare"
|
||||
#endif
|
||||
|
||||
#define FRAME_TYPE(name_, first_class_, last_class_) \
|
||||
bool Is##name_##Frame() const { \
|
||||
@ -2816,6 +2820,9 @@ class nsIFrame : public nsQueryFrame {
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user