Bug 1315143 - Disable warnings caused by including BasePrincipal.h r=Cykesiopka,keeler
authorJonathan Hao <jhao@mozilla.com>
Wed, 23 Nov 2016 14:56:20 +0800
changeset 323973 d7dd10403797f53ca13b86bb751013f5b45aefc9
parent 323972 498b09513061f6567afc307aba099c4bbe9d550b
child 323974 a214a23b603eb5dedf8210ae9d027b985fb60835
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersCykesiopka, keeler
bugs1315143
milestone53.0a1
Bug 1315143 - Disable warnings caused by including BasePrincipal.h r=Cykesiopka,keeler
security/certverifier/CertVerifier.h
--- a/security/certverifier/CertVerifier.h
+++ b/security/certverifier/CertVerifier.h
@@ -6,21 +6,38 @@
 
 #ifndef CertVerifier_h
 #define CertVerifier_h
 
 #include "BRNameMatchingPolicy.h"
 #include "CTVerifyResult.h"
 #include "OCSPCache.h"
 #include "ScopedNSSTypes.h"
-#include "mozilla/BasePrincipal.h"
 #include "mozilla/Telemetry.h"
 #include "mozilla/UniquePtr.h"
 #include "pkix/pkixtypes.h"
 
+#if defined(_MSC_VER)
+#pragma warning(push)
+// Silence "RootingAPI.h(718): warning C4324: 'js::DispatchWrapper<T>':
+// structure was padded due to alignment specifier with [ T=void * ]"
+#pragma warning(disable:4324)
+// Silence "Value.h(448): warning C4365: 'return': conversion from 'const
+// int32_t' to 'JS::Value::PayloadType', signed/unsigned mismatch"
+#pragma warning(disable:4365)
+// Silence "warning C5031: #pragma warning(pop): likely mismatch, popping
+// warning state pushed in different file 
+#pragma warning(disable:5031)
+#endif /* defined(_MSC_VER) */
+#include "mozilla/BasePrincipal.h"
+#if defined(_MSC_VER)
+#pragma warning(pop) /* popping the pragma in Vector.h */
+#pragma warning(pop) /* popping the pragma in this file */
+#endif /* defined(_MSC_VER) */
+
 namespace mozilla { namespace ct {
 
 // Including MultiLogCTVerifier.h would bring along all of its dependent
 // headers and force us to export them in moz.build. Just forward-declare
 // the class here instead.
 class MultiLogCTVerifier;
 
 } } // namespace mozilla::ct