diff options
author | Cykesiopka <cykesiopka.bmo@gmail.com> | 2017-05-05 00:41:33 +0800 |
---|---|---|
committer | Cykesiopka <cykesiopka.bmo@gmail.com> | 2017-05-05 00:41:33 +0800 |
commit | f5c2ed9e4f624f19e18be6ad95e2730cdc6db3a9 (patch) | |
tree | 167badda2f5832fb778ea838628eb01b0424b9f1 | |
parent | 9f1dec92d48fc52566fa7bd9b63a0dcc736b4c19 (diff) | |
download | nss-hg-f5c2ed9e4f624f19e18be6ad95e2730cdc6db3a9.tar.gz |
Bug 1361750 - Disable various MSVC 2017 warnings in PSM to unbreak --enable-warnings-as-errors builds. r=keeler
MSVC 2017 headers aren't warning free at the -Wall level.
Since PSM enables -Wall in some moz.build files, this breaks
--enable-warnings-as-errors builds.
As a temporary measure, disable enough warnings to get working builds.
MozReview-Commit-ID: G0oUsAYYct2
-rw-r--r-- | lib/mozpkix/warnings.mozbuild | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/mozpkix/warnings.mozbuild b/lib/mozpkix/warnings.mozbuild index 3fdc10bd7..4ddd3a119 100644 --- a/lib/mozpkix/warnings.mozbuild +++ b/lib/mozpkix/warnings.mozbuild @@ -26,6 +26,18 @@ elif CONFIG['_MSC_VER']: '-wd4800', # forcing value to bool 'true' or 'false' '-wd4820', # 'bytes' bytes padding added after construct 'member_name' + # The following warnings are disabled because MSVC 2017 headers aren't + # warning free at the -Wall level. + '-wd4365', # 'action' : conversion from 'type_1' to 'type_2', + # signed/unsigned mismatch + '-wd4619', # #pragma warning : there is no warning number 'number' + '-wd4623', # 'derived class' : default constructor was implicitly defined as + # deleted because a base class default constructor is + # inaccessible or deleted + '-wd4774', # '<function>' : format string expected in argument <position> is + # not a string literal + '-wd4987', # nonstandard extension used: 'throw (...)' + # XXX: We cannot use /Za (Disable Microsoft Extensions) because windows.h # won't copmile with it. '-Zc:forScope', # Standard C++ rules for variable scope in for loops. |