| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index c221ddd327a4a033c612fc41ca981f47c12418a9..dcd5d6596d619d40e2389f20f7fee94cdd351694 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -762,10 +762,18 @@ config("default_warnings") {
|
|
|
| # TODO(thakis): Remove, http://crbug.com/263960
|
| "-Wno-reserved-user-defined-literal",
|
| -
|
| - # TODO(hans): Get this cleaned up.
|
| - "-Wno-inconsistent-missing-override",
|
| ]
|
| +
|
| + # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost
|
| + # always have different versions. Certain flags may not be recognized by
|
| + # one version or the other.
|
| + if (!is_nacl) {
|
| + # Flags NaCl does not recognize.
|
| + cflags += [
|
| + # TODO(hans): Get this cleaned up.
|
| + "-Wno-inconsistent-missing-override",
|
| + ]
|
| + }
|
| }
|
| if (gcc_version >= 48) {
|
| cflags_cc += [
|
|
|