From fb180441186932967d43cf4afe3767199bae7616 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 6 Dec 2017 11:02:21 +0100 Subject: FIXUP: Reduce warning flood when compiling with clang The old flags for ignoring unknown options were needed in cflags not in cflags_cc. Change-Id: Ie90d00397119872d13696246b6f4878533519686 Reviewed-by: Alexandru Croitor --- chromium/build/config/compiler/BUILD.gn | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn index a1b2e74fc53..a09a2db20e1 100644 --- a/chromium/build/config/compiler/BUILD.gn +++ b/chromium/build/config/compiler/BUILD.gn @@ -260,12 +260,14 @@ config("compiler") { } if (use_qt && is_clang) { - cflags_cc += [ - "-Wno-parentheses-equality", - "-Wno-tautological-compare", + cflags += [ "-Wno-unknown-attributes", "-Wno-unknown-warning-option" ] + cflags_cc += [ + "-Wno-parentheses-equality", + "-Wno-tautological-compare" + ] } if (is_clang && (is_debug || use_qt)) { -- cgit v1.2.1