0034-reduce-warnings-flag-as-error.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 436d02e269f47535fcae34ce9dbca3ca36617cd6 Mon Sep 17 00:00:00 2001
  2. From: Tien Hock Loh <tienhock.loh@starfivetech.com>
  3. Date: Thu, 11 Aug 2022 08:07:56 +0000
  4. Subject: [PATCH 34/68] reduce warnings flag as error
  5. Signed-off-by: Tien Hock Loh <tienhock.loh@starfivetech.com>
  6. ---
  7. components/optimization_guide/core/BUILD.gn | 3 +++
  8. third_party/tflite_support/BUILD.gn | 2 ++
  9. 2 files changed, 5 insertions(+)
  10. diff --git a/components/optimization_guide/core/BUILD.gn b/components/optimization_guide/core/BUILD.gn
  11. index 9abc153e55cf..92f10dfae7e0 100644
  12. --- a/components/optimization_guide/core/BUILD.gn
  13. +++ b/components/optimization_guide/core/BUILD.gn
  14. @@ -7,6 +7,9 @@ if (is_android) {
  15. }
  16. import("//components/optimization_guide/features.gni")
  17. +cflags_cc = [ "-Wno-absolute-value" ]
  18. +cflags_cc += [ "-Wno-defaulted-function-deleted" ]
  19. +
  20. static_library("bloomfilter") {
  21. sources = [
  22. "bloom_filter.cc",
  23. diff --git a/third_party/tflite_support/BUILD.gn b/third_party/tflite_support/BUILD.gn
  24. index 284ef4c742d2..85161cf563aa 100644
  25. --- a/third_party/tflite_support/BUILD.gn
  26. +++ b/third_party/tflite_support/BUILD.gn
  27. @@ -42,6 +42,8 @@ config("tflite_support_flags") {
  28. "-Wno-unused-variable",
  29. "-Wno-defaulted-function-deleted",
  30. "-Wno-absolute-value",
  31. + "-Wno-defaulted-function-deleted",
  32. + "-Wno-absolute-value",
  33. ]
  34. if (!is_win) {
  35. cflags_cc = [ "-frtti" ]
  36. --
  37. 2.30.2