Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 842 # always have different versions. Certain flags may not be recognized by | 842 # always have different versions. Certain flags may not be recognized by |
| 843 # one version or the other. | 843 # one version or the other. |
| 844 if (!is_nacl) { | 844 if (!is_nacl) { |
| 845 # Flags NaCl (Clang 3.7) does not recognize. | 845 # Flags NaCl (Clang 3.7) does not recognize. |
| 846 default_warning_flags += [ | 846 default_warning_flags += [ |
| 847 # TODO(smklein): Enable this, crbug.com/507717 | 847 # TODO(smklein): Enable this, crbug.com/507717 |
| 848 "-Wno-shift-negative-value", | 848 "-Wno-shift-negative-value", |
| 849 | 849 |
| 850 # TODO(smklein): Consider enabling this once not broken by third party | 850 # TODO(smklein): Consider enabling this once not broken by third party |
| 851 "-Wno-bitfield-width", | 851 "-Wno-bitfield-width", |
| 852 | |
| 853 # TODO(dalesat): Remove once not broken by third party (ffmpeg). | |
| 854 "-Wno-constant-conversion", | |
|
johngro
2016/03/01 01:31:38
Is it possible to stuff this in the build rules fo
jamesr
2016/03/01 17:56:43
Don't disable warnings like this globally. You ca
dalesat
2016/03/01 20:43:01
FWIW, I'm restoring a flag that was only recently
| |
| 852 ] | 855 ] |
| 853 } | 856 } |
| 854 } | 857 } |
| 855 | 858 |
| 856 # chromium_code --------------------------------------------------------------- | 859 # chromium_code --------------------------------------------------------------- |
| 857 # | 860 # |
| 858 # Toggles between higher and lower warnings for code that is (or isn't) | 861 # Toggles between higher and lower warnings for code that is (or isn't) |
| 859 # part of Chromium. | 862 # part of Chromium. |
| 860 | 863 |
| 861 config("chromium_code") { | 864 config("chromium_code") { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1117 if (symbol_level == 0) { | 1120 if (symbol_level == 0) { |
| 1118 configs = [ ":no_symbols" ] | 1121 configs = [ ":no_symbols" ] |
| 1119 } else if (symbol_level == 1) { | 1122 } else if (symbol_level == 1) { |
| 1120 configs = [ ":minimal_symbols" ] | 1123 configs = [ ":minimal_symbols" ] |
| 1121 } else if (symbol_level == 2) { | 1124 } else if (symbol_level == 2) { |
| 1122 configs = [ ":symbols" ] | 1125 configs = [ ":symbols" ] |
| 1123 } else { | 1126 } else { |
| 1124 assert(false) | 1127 assert(false) |
| 1125 } | 1128 } |
| 1126 } | 1129 } |
| OLD | NEW |