mozilla-bmo1810584.patch
branchfirefox111
changeset 1185 da29365b0b2c
parent 1184 1c3d3217d679
child 1186 5185fb499263
equal deleted inserted replaced
1184:1c3d3217d679 1185:da29365b0b2c
     1 
       
     2 # HG changeset patch
       
     3 # User Iain Ireland <iireland@mozilla.com>
       
     4 # Date 1674084161 0
       
     5 # Node ID 0a20a4613cc423258696c2e6200dc7d34f934cb6
       
     6 # Parent  26cacd18b61e629c8c45ca45c36770d3bf3f15b8
       
     7 Bug 1810584: Suppress false positive error for gcc r=mgaudet
       
     8 
       
     9 Differential Revision: https://phabricator.services.mozilla.com/D167194
       
    10 
       
    11 diff --git a/js/src/irregexp/moz.build b/js/src/irregexp/moz.build
       
    12 --- a/js/src/irregexp/moz.build
       
    13 +++ b/js/src/irregexp/moz.build
       
    14 @@ -9,16 +9,20 @@ FINAL_LIBRARY = "js"
       
    15  # Includes should be relative to parent path
       
    16  LOCAL_INCLUDES += ["!..", ".."]
       
    17  
       
    18  include("../js-config.mozbuild")
       
    19  include("../js-cxxflags.mozbuild")
       
    20  
       
    21  CXXFLAGS += ["-Wno-error=type-limits", "-Wno-error=return-type"]
       
    22  
       
    23 +# Suppress spurious warnings in third-party code. See bug 1810584.
       
    24 +if CONFIG["CC_TYPE"] == "gcc":
       
    25 +    CXXFLAGS += ["-Wno-error=nonnull"]
       
    26 +
       
    27  UNIFIED_SOURCES += [
       
    28      "imported/regexp-bytecode-generator.cc",
       
    29      "imported/regexp-bytecode-peephole.cc",
       
    30      "imported/regexp-bytecodes.cc",
       
    31      "imported/regexp-compiler-tonode.cc",
       
    32      "imported/regexp-dotprinter.cc",
       
    33      "imported/regexp-interpreter.cc",
       
    34      "imported/regexp-macro-assembler-tracer.cc",
       
    35