1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
diff --git a/BUILD.gn b/BUILD.gn
index 66fd5ba389f..fc833d80b7b 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1700,6 +1700,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) {
@@ -1743,6 +1744,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",
]
}
@@ -1761,7 +1767,7 @@ config("strict_warnings") {
}
cflags += [
"-Wmissing-field-initializers",
- "-Wunnecessary-virtual-specifier",
+ # "-Wunnecessary-virtual-specifier",
]
}
}
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 2ef2d2f85..e8d80db45 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -2179,7 +2179,7 @@ config("default_warnings") {
"-Wno-nontrivial-memcall",
# TODO(crbug.com/432275627): Fix and re-enable.
- "-Wno-uninitialized-const-pointer",
+ # "-Wno-uninitialized-const-pointer",
]
cflags_cc += [
|