OSDN Git Service

Extra warnings suppression for Chromium
authorAlexis Hetu <sugoi@google.com>
Wed, 2 Aug 2017 20:06:29 +0000 (16:06 -0400)
committerAlexis Hétu <sugoi@google.com>
Wed, 2 Aug 2017 20:12:25 +0000 (20:12 +0000)
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>
src/Reactor/BUILD.gn
third_party/LLVM/BUILD.gn

index b7dca6d..4bc15c5 100644 (file)
@@ -75,6 +75,7 @@ config("swiftshader_subzero_private_config") {
       "/wd4146",
       "/wd4245",  # conversion from int to unsigned int (llvm)
       "/wd4267",
+      "/wd4291",
       "/wd4310",
       "/wd4334",
       "/wd4389",
@@ -112,6 +113,8 @@ config("swiftshader_reactor_with_subzero_private_config") {
       "/wd4146",
       "/wd4245",  # conversion from int to unsigned int (llvm)
       "/wd4267",
+      "/wd4291",
+      "/wd4309",
       "/wd4702",
       "/wd4800",
     ]
index 4099e6d..3fc4d22 100644 (file)
@@ -55,8 +55,6 @@ config("swiftshader_llvm_private_config") {
       "-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 @@ config("swiftshader_llvm_private_config") {
     "-Wno-deprecated-declarations",
     "-Wno-enum-compare",
     "-Wno-unused-function",
+    "-Wno-unused-local-typedef",
+    "-Wno-unused-private-field",
     "-Wno-unused-result",
     "-Wno-unused-variable",
   ]