summaryrefslogtreecommitdiffstats
path: root/debian/patches/fixes/Bug-1810584-Suppress-false-positive-error-for-gcc-r-.patch
blob: 0cfb78ae49792acce23093d894e876bc07a35217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Iain Ireland <iireland@mozilla.com>
Date: Wed, 18 Jan 2023 23:22:41 +0000
Subject: Bug 1810584: Suppress false positive error for gcc r=mgaudet

Differential Revision: https://phabricator.services.mozilla.com/D167194
---
 js/src/irregexp/moz.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/js/src/irregexp/moz.build b/js/src/irregexp/moz.build
index 8acb242..ff030ad 100644
--- a/js/src/irregexp/moz.build
+++ b/js/src/irregexp/moz.build
@@ -14,6 +14,10 @@ include("../js-cxxflags.mozbuild")
 
 CXXFLAGS += ["-Wno-error=type-limits", "-Wno-error=return-type"]
 
+# Suppress spurious warnings in third-party code. See bug 1810584.
+if CONFIG["CC_TYPE"] == "gcc":
+    CXXFLAGS += ["-Wno-error=nonnull"]
+
 UNIFIED_SOURCES += [
     "imported/regexp-bytecode-generator.cc",
     "imported/regexp-bytecode-peephole.cc",