From 255163785d7bf010e17e5f4eea1f7bc677328c5b Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 27 Apr 2021 16:00:42 +0100 Subject: [PATCH] Restrict -Wno-unknown-warning-option to clang based compilers. --- build/config/compiler/BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index f8c602dfe04fa1..62a942bdeaeb3c 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -145,7 +145,6 @@ config("optimize_default") { config("disabled_warnings") { cflags = [ "-Wno-deprecated-declarations", - "-Wno-unknown-warning-option", "-Wno-missing-field-initializers", "-Wno-unused-parameter", ] @@ -158,6 +157,8 @@ config("disabled_warnings") { "-Wno-psabi", "-Wno-cast-function-type", ] + } else { + cflags += [ "-Wno-unknown-warning-option" ] } }