mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 785440 - Disable warning C4324 when building security/certverifier. r=keeler
This warning is triggered by the use of alignas() in js/public/RootingAPI.h. Now that GeckoProfiler.h includes RootingAPI.h, this warning is encountered when building security/certverifier because GeckoProfiler.h is already being included transitively, through this inclusion path: CertVerifier.cpp -> CertVerifier.h -> Telemetry.h -> StartupTimeline.h -> GeckoProfiler.h However, this explanation is not entirely satisfactory, because there seems to be an existing inclusion path for RootingAPI.h already: CertVerifier.cpp -> CertVerifier.h -> BasePrincipal.h -> OriginAttributes.h -> ChromeUtils.h -> ChromeUtilsBinding.h -> RootingAPI.h So I'm not quite sure why this problem is only starting to happen now. MozReview-Commit-ID: AFuXpTjdPsi --HG-- extra : rebase_source : 60f74c8655d15fbc6acbf0ce8a2f208e198e231e
This commit is contained in:
parent
7e275b635a
commit
62e953a6b6
@ -66,6 +66,7 @@ CXXFLAGS += ['-Wall']
|
||||
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
||||
# -Wall with Visual C++ enables too many problematic warnings
|
||||
CXXFLAGS += [
|
||||
'-wd4324', # structure was padded due to __declspec(align())
|
||||
'-wd4355', # 'this' used in base member initializer list
|
||||
'-wd4464', # relative include path contains '..'
|
||||
'-wd4480', # nonstandard extension used: specifying underlying type for
|
||||
|
Loading…
Reference in New Issue
Block a user