summarylogtreecommitdiffstats
path: root/silence_build.diff
blob: 64181cfbbd324de3d5d52b7597236d1ccdef0c9a (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
diff --git a/BUILD.gn b/BUILD.gn
index e03e85d2ad7..5d5869a6c7d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1633,6 +1633,7 @@ config("toolchain") {
     # on non-standard-layout types is implementation defined (rather than UB),
     # and our supported compilers have the expected reasonable behaviour.
     "-Wno-invalid-offsetof",
+    "-Wno-deprecated",
   ]
 
   if (!is_clang) {
@@ -1676,6 +1677,11 @@ config("toolchain") {
       # Disable dangling pointer warnings, which are often false positives when
       # using scopes.
       "-Wno-dangling-pointer",
+
+      # Disable warning that is spamming a lot ...
+      "-Wno-template-id-cdtor",
+      "-Wno-uninitialized",
+      "-Wno-dangling-reference",
     ]
   }