Bug 1515434 - Only activate the deactivation of -Wc++2a-compat from clang 6 r=botond

Differential Revision: https://phabricator.services.mozilla.com/D15012

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2018-12-19 21:18:46 +00:00
parent 0e8e78f4bb
commit b2099f351e
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ using mozilla::IsValidUtf8;
using mozilla::Utf8Unit;
// Disable the C++ 2a warning. See bug #1509926
#if defined(__clang__)
#if defined(__clang__) && (__clang_major__ >= 6)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++2a-compat"
#endif
@ -742,6 +742,6 @@ int main() {
return 0;
}
#if defined(__clang__)
#if defined(__clang__) && (__clang_major__ >= 6)
#pragma clang diagnostic pop
#endif

View File

@ -30,7 +30,7 @@
});
// Disable the C++ 2a warning. See bug #1509926
#if defined(__clang__)
#if defined(__clang__) && (__clang_major__ >= 6)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++2a-compat"
#endif
@ -2345,6 +2345,6 @@ CONVERSION_BENCH(PerfUTF8toUTF16VIThousand, CopyUTF8toUTF16, mViThousandUtf8,
} // namespace TestStrings
#if defined(__clang__)
#if defined(__clang__) && (__clang_major__ >= 6)
#pragma clang diagnostic pop
#endif