mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
0e8e78f4bb
commit
b2099f351e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user