Bladeren bron

reduce warnings flag as error

Signed-off-by: Tien Hock Loh <tienhock.loh@starfivetech.com>
Tien Hock Loh 1 jaar geleden
bovenliggende
commit
625dfc41f2
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 3 0
      components/optimization_guide/core/BUILD.gn
  2. 2 0
      third_party/tflite_support/BUILD.gn

+ 3 - 0
components/optimization_guide/core/BUILD.gn

@@ -11,6 +11,9 @@ import("//build/buildflag_header.gni")
 import("//components/optimization_guide/features.gni")
 import("//third_party/tflite/features.gni")
 
+cflags_cc = [ "-Wno-absolute-value" ]
+cflags_cc += [ "-Wno-defaulted-function-deleted" ]
+
 static_library("bloomfilter") {
   sources = [
     "bloom_filter.cc",

+ 2 - 0
third_party/tflite_support/BUILD.gn

@@ -42,6 +42,8 @@ config("tflite_support_flags") {
     "-Wno-unused-variable",
     "-Wno-defaulted-function-deleted",
     "-Wno-absolute-value",
+    "-Wno-defaulted-function-deleted",
+    "-Wno-absolute-value",
   ]
   if (!is_win) {
     cflags_cc = [ "-frtti" ]