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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (is_posix) { | 9 if (is_posix) { |
10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
561 # This is where we disable various warnings that we've decided aren't | 561 # This is where we disable various warnings that we've decided aren't |
562 # worthwhile, and enable special warnings. | 562 # worthwhile, and enable special warnings. |
563 | 563 |
564 config("default_warnings") { | 564 config("default_warnings") { |
565 if (is_win) { | 565 if (is_win) { |
566 cflags = [ | 566 cflags = [ |
567 "/WX", # Treat warnings as errors. | 567 "/WX", # Treat warnings as errors. |
568 | 568 |
569 # Warnings permanently disabled: | 569 # Warnings permanently disabled: |
570 | 570 |
571 # TODO(GYP) The GYP build doesn't have this globally enabled but disabled | |
Peter Kasting
2014/07/28 11:20:47
Is "doesn't have" here supposed to read "has"?
Wh
brettw
2014/07/28 18:05:42
Previously it was globally disabled in the GYP bui
Peter Kasting
2014/07/28 19:20:50
Removing the global one worked because I manually
| |
572 # for a bunch of individual targets. Re-enable this globally when those | |
573 # targets are fixed. | |
574 "/wd4018", # Comparing signed and unsigned values. | |
575 | |
571 # C4127: conditional expression is constant | 576 # C4127: conditional expression is constant |
572 # This warning can in theory catch dead code and other problems, but | 577 # This warning can in theory catch dead code and other problems, but |
573 # triggers in far too many desirable cases where the conditional | 578 # triggers in far too many desirable cases where the conditional |
574 # expression is either set by macros or corresponds some legitimate | 579 # expression is either set by macros or corresponds some legitimate |
575 # compile-time constant expression (due to constant template args, | 580 # compile-time constant expression (due to constant template args, |
576 # conditionals comparing the sizes of different types, etc.). Some of | 581 # conditionals comparing the sizes of different types, etc.). Some of |
577 # these can be worked around, but it's not worth it. | 582 # these can be worked around, but it's not worth it. |
578 "/wd4127", | 583 "/wd4127", |
579 | 584 |
580 # C4251: 'identifier' : class 'type' needs to have dll-interface to be | 585 # C4251: 'identifier' : class 'type' needs to have dll-interface to be |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
878 } else { | 883 } else { |
879 cflags = [ "-g1" ] | 884 cflags = [ "-g1" ] |
880 } | 885 } |
881 } | 886 } |
882 | 887 |
883 config("no_symbols") { | 888 config("no_symbols") { |
884 if (!is_win) { | 889 if (!is_win) { |
885 cflags = [ "-g0" ] | 890 cflags = [ "-g0" ] |
886 } | 891 } |
887 } | 892 } |
OLD | NEW |