-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path0034-reduce-warnings-flag-as-error.patch
41 lines (37 loc) · 1.38 KB
/
0034-reduce-warnings-flag-as-error.patch
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
From 436d02e269f47535fcae34ce9dbca3ca36617cd6 Mon Sep 17 00:00:00 2001
From: Tien Hock Loh <tienhock.loh@starfivetech.com>
Date: Thu, 11 Aug 2022 08:07:56 +0000
Subject: [PATCH 34/68] reduce warnings flag as error
Signed-off-by: Tien Hock Loh <tienhock.loh@starfivetech.com>
---
components/optimization_guide/core/BUILD.gn | 3 +++
third_party/tflite_support/BUILD.gn | 2 ++
2 files changed, 5 insertions(+)
diff --git a/components/optimization_guide/core/BUILD.gn b/components/optimization_guide/core/BUILD.gn
index 9abc153e55cf..92f10dfae7e0 100644
--- a/components/optimization_guide/core/BUILD.gn
+++ b/components/optimization_guide/core/BUILD.gn
@@ -7,6 +7,9 @@ if (is_android) {
}
import("//components/optimization_guide/features.gni")
+cflags_cc = [ "-Wno-absolute-value" ]
+cflags_cc += [ "-Wno-defaulted-function-deleted" ]
+
static_library("bloomfilter") {
sources = [
"bloom_filter.cc",
diff --git a/third_party/tflite_support/BUILD.gn b/third_party/tflite_support/BUILD.gn
index 284ef4c742d2..85161cf563aa 100644
--- a/third_party/tflite_support/BUILD.gn
+++ b/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" ]
--
2.30.2