Browse Source

build: config: compiler: skip warning for ffmpeg

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 1 year ago
parent
commit
17437a896a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      build/config/compiler/BUILD.gn

+ 2 - 0
build/config/compiler/BUILD.gn

@@ -1183,6 +1183,7 @@ config("compiler_cpu_abi") {
           "-mno-relax",
           "-march=rv64gc",
           "-mabi=lp64d",
+          "-Wno-error=deprecated-declarations",
         ]
         ldflags += [
           "--target=riscv64-linux-gnu",
@@ -1915,6 +1916,7 @@ config("wglobal_constructors") {
 config("wexit_time_destructors") {
   if (is_clang) {
     cflags = [ "-Wexit-time-destructors" ]
+    cflags += [ "-Wno-deprecated-declarations" ]
   }
 }