| 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 "-Wno-msvc-include", # http://crbug.com/505299 | 810 "-Wno-msvc-include", # http://crbug.com/505299 |
| 811 "-Wno-overloaded-virtual", # http://crbug.com/505301 | 811 "-Wno-overloaded-virtual", # http://crbug.com/505301 |
| 812 "-Wno-pointer-sign", # http://crbug.com/505303 | 812 "-Wno-pointer-sign", # http://crbug.com/505303 |
| 813 "-Wno-reorder", # http://crbug.com/505304 | 813 "-Wno-reorder", # http://crbug.com/505304 |
| 814 "-Wno-sometimes-uninitialized", # http://crbug.com/505307 | 814 "-Wno-sometimes-uninitialized", # http://crbug.com/505307 |
| 815 "-Wno-switch", # http://crbug.com/505308 | 815 "-Wno-switch", # http://crbug.com/505308 |
| 816 "-Wno-unknown-pragmas", # http://crbug.com/505314 | 816 "-Wno-unknown-pragmas", # http://crbug.com/505314 |
| 817 "-Wno-unused-function", # http://crbug.com/505316 | 817 "-Wno-unused-function", # http://crbug.com/505316 |
| 818 "-Wno-unused-private-field", # http://crbug.com/505317 | 818 "-Wno-unused-private-field", # http://crbug.com/505317 |
| 819 "-Wno-unused-value", # http://crbug.com/505318 | 819 "-Wno-unused-value", # http://crbug.com/505318 |
| 820 "-Wno-unused-variable", # http://crbug.com/505319 | |
| 821 "-Wno-unused-local-typedef", # http://crbug.com/411648 | 820 "-Wno-unused-local-typedef", # http://crbug.com/411648 |
| 822 ] | 821 ] |
| 823 } | 822 } |
| 824 } else { | 823 } else { |
| 825 # Common GCC warning setup. | 824 # Common GCC warning setup. |
| 826 default_warning_flags += [ | 825 default_warning_flags += [ |
| 827 # Enables. | 826 # Enables. |
| 828 "-Wendif-labels", # Weird old-style text after an #endif. | 827 "-Wendif-labels", # Weird old-style text after an #endif. |
| 829 "-Werror", # Warnings as errors. | 828 "-Werror", # Warnings as errors. |
| 830 | 829 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 } | 990 } |
| 992 | 991 |
| 993 if (is_linux) { | 992 if (is_linux) { |
| 994 # Don't warn about ignoring the return value from e.g. close(). This is | 993 # Don't warn about ignoring the return value from e.g. close(). This is |
| 995 # off by default in some gccs but on by default in others. BSD systems do | 994 # off by default in some gccs but on by default in others. BSD systems do |
| 996 # not support this option, since they are usually using gcc 4.2.1, which | 995 # not support this option, since they are usually using gcc 4.2.1, which |
| 997 # does not have this flag yet. | 996 # does not have this flag yet. |
| 998 cflags += [ "-Wno-unused-result" ] | 997 cflags += [ "-Wno-unused-result" ] |
| 999 } | 998 } |
| 1000 | 999 |
| 1000 if (is_clang) { |
| 1001 # Lots of third-party libraries have unused variables. Instead of |
| 1002 # suppressing them individually, we just blanket suppress them here. |
| 1003 cflags += [ "-Wno-unused-variable" ] |
| 1004 } |
| 1005 |
| 1001 if (is_linux || is_android) { | 1006 if (is_linux || is_android) { |
| 1002 cflags += [ | 1007 cflags += [ |
| 1003 # Don't warn about printf format problems. This is off by default in gcc | 1008 # Don't warn about printf format problems. This is off by default in gcc |
| 1004 # but on in Ubuntu's gcc(!). | 1009 # but on in Ubuntu's gcc(!). |
| 1005 "-Wno-format", | 1010 "-Wno-format", |
| 1006 ] | 1011 ] |
| 1007 cflags_cc += [ | 1012 cflags_cc += [ |
| 1008 # Don't warn about hash_map in third-party code. | 1013 # Don't warn about hash_map in third-party code. |
| 1009 "-Wno-deprecated", | 1014 "-Wno-deprecated", |
| 1010 ] | 1015 ] |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 cflags += [ "-gsplit-dwarf" ] | 1240 cflags += [ "-gsplit-dwarf" ] |
| 1236 } | 1241 } |
| 1237 } | 1242 } |
| 1238 } | 1243 } |
| 1239 | 1244 |
| 1240 config("no_symbols") { | 1245 config("no_symbols") { |
| 1241 if (!is_win) { | 1246 if (!is_win) { |
| 1242 cflags = [ "-g0" ] | 1247 cflags = [ "-g0" ] |
| 1243 } | 1248 } |
| 1244 } | 1249 } |
| OLD | NEW |