diff --git a/toolkit/crashreporter/crashreporter.mozbuild b/toolkit/crashreporter/crashreporter.mozbuild index 3f66ac745a02..41f4a6cb8524 100644 --- a/toolkit/crashreporter/crashreporter.mozbuild +++ b/toolkit/crashreporter/crashreporter.mozbuild @@ -30,9 +30,13 @@ elif CONFIG['GNU_CXX']: ] if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']: - CXXFLAGS += [ - '-Wno-implicit-fallthrough', - '-Wno-c++11-narrowing', - ] + CXXFLAGS += [ + '-Wno-c++11-narrowing', + ] + +if not CONFIG['_MSC_VER']: + CXXFLAGS += [ + '-Wno-implicit-fallthrough', + ] DEFINES['NO_STABS_SUPPORT'] = True