Extra warnings suppression for Chromium
A few more warnings suppression were missing after the last build
file change. Added them here to hopefully fix build issues.
Change-Id: I80371a3ae59920dccf9c64a36c96d0341e7e39f5
Reviewed-on: https://swiftshader-review.googlesource.com/11210
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Reactor/BUILD.gn b/src/Reactor/BUILD.gn
index b7dca6d..4bc15c5 100644
--- a/src/Reactor/BUILD.gn
+++ b/src/Reactor/BUILD.gn
@@ -75,6 +75,7 @@
"/wd4146",
"/wd4245", # conversion from int to unsigned int (llvm)
"/wd4267",
+ "/wd4291",
"/wd4310",
"/wd4334",
"/wd4389",
@@ -112,6 +113,8 @@
"/wd4146",
"/wd4245", # conversion from int to unsigned int (llvm)
"/wd4267",
+ "/wd4291",
+ "/wd4309",
"/wd4702",
"/wd4800",
]
diff --git a/third_party/LLVM/BUILD.gn b/third_party/LLVM/BUILD.gn
index 4099e6d..3fc4d22 100644
--- a/third_party/LLVM/BUILD.gn
+++ b/third_party/LLVM/BUILD.gn
@@ -55,8 +55,6 @@
"-msse2",
"-Wno-header-hygiene",
"-Wno-null-dereference",
- "-Wno-unused-private-field",
- "-Wno-unused-local-typedef",
]
} else {
cflags += [ "-Wno-unused-but-set-variable" ]
@@ -66,6 +64,8 @@
"-Wno-deprecated-declarations",
"-Wno-enum-compare",
"-Wno-unused-function",
+ "-Wno-unused-local-typedef",
+ "-Wno-unused-private-field",
"-Wno-unused-result",
"-Wno-unused-variable",
]