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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
10 | 10 |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 if (!is_win || is_clang) { | 823 if (!is_win || is_clang) { |
824 cflags += [ | 824 cflags += [ |
825 # Disables. | 825 # Disables. |
826 "-Wno-missing-field-initializers", # "struct foo f = {0};" | 826 "-Wno-missing-field-initializers", # "struct foo f = {0};" |
827 "-Wno-unused-parameter", # Unused function parameters. | 827 "-Wno-unused-parameter", # Unused function parameters. |
828 ] | 828 ] |
829 } | 829 } |
830 | 830 |
831 if (is_clang) { | 831 if (is_clang) { |
832 cflags += [ | 832 cflags += [ |
| 833 # TODO(thakis): Add -Wfor-loop-analysis to -Wall in clang, remove this: |
| 834 "-Wfor-loop-analysis", |
| 835 |
| 836 # TODO(thakis): Consider -Wloop-analysis (turns on |
| 837 # -Wrange-loop-analysis too). |
| 838 |
833 # This warns on using ints as initializers for floats in | 839 # This warns on using ints as initializers for floats in |
834 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), | 840 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), |
835 # which happens in several places in chrome code. Not sure if | 841 # which happens in several places in chrome code. Not sure if |
836 # this is worth fixing. | 842 # this is worth fixing. |
837 "-Wno-c++11-narrowing", | 843 "-Wno-c++11-narrowing", |
838 | 844 |
839 # Warns on switches on enums that cover all enum values but | 845 # Warns on switches on enums that cover all enum values but |
840 # also contain a default: branch. Chrome is full of that. | 846 # also contain a default: branch. Chrome is full of that. |
841 "-Wno-covered-switch-default", | 847 "-Wno-covered-switch-default", |
842 | 848 |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 if (symbol_level == 0) { | 1303 if (symbol_level == 0) { |
1298 configs = [ ":no_symbols" ] | 1304 configs = [ ":no_symbols" ] |
1299 } else if (symbol_level == 1) { | 1305 } else if (symbol_level == 1) { |
1300 configs = [ ":minimal_symbols" ] | 1306 configs = [ ":minimal_symbols" ] |
1301 } else if (symbol_level == 2) { | 1307 } else if (symbol_level == 2) { |
1302 configs = [ ":symbols" ] | 1308 configs = [ ":symbols" ] |
1303 } else { | 1309 } else { |
1304 assert(false) | 1310 assert(false) |
1305 } | 1311 } |
1306 } | 1312 } |
OLD | NEW |