# HG changeset patch # User aceman # Date 1533706698 -7200 # Node ID 7c91a7822ca0486b3d00451b5132f4b1baf0894d # Parent c774752331351836efd2bff8ef8abc240fb37983 Bug 1481417 - Part 1: Replace AllowCompilerWarnings() with -Wno-error=switch in mailnews/compose/src. r=jorgk diff --git a/mailnews/compose/src/moz.build b/mailnews/compose/src/moz.build --- a/mailnews/compose/src/moz.build +++ b/mailnews/compose/src/moz.build @@ -48,10 +48,11 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'coco EXTRA_COMPONENTS += [ 'nsSMTPProtocolHandler.js', 'nsSMTPProtocolHandler.manifest', ] FINAL_LIBRARY = 'mail' +# clang-cl rightly complains about switch on nsresult. if CONFIG['CC_TYPE'] == 'clang-cl': - AllowCompilerWarnings() # workaround for bug 1090497 / bug 1481326 + CXXFLAGS += ['-Wno-error=switch']