Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1234253003: Disable VS 2015 warning that fires on compiler-generated constructors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added to .gn configuration and sorted. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 "/wd4355", 745 "/wd4355",
746 746
747 # C4503: 'identifier': decorated name length exceeded, name was 747 # C4503: 'identifier': decorated name length exceeded, name was
748 # truncated 748 # truncated
749 # This only means that some long error messages might have truncated 749 # This only means that some long error messages might have truncated
750 # identifiers in the presence of lots of templates. It has no effect on 750 # identifiers in the presence of lots of templates. It has no effect on
751 # program correctness and there's no real reason to waste time trying to 751 # program correctness and there's no real reason to waste time trying to
752 # prevent it. 752 # prevent it.
753 "/wd4503", 753 "/wd4503",
754 754
755 # Warning C4589 says: "Constructor of abstract class ignores
756 # initializer for virtual base class." Disable this warning because it
757 # is flaky in VS 2015 RTM. It triggers on compiler generated
758 # copy-constructors in some cases.
759 "/wd4589",
760
755 # C4611: interaction between 'function' and C++ object destruction is 761 # C4611: interaction between 'function' and C++ object destruction is
756 # non-portable 762 # non-portable
757 # This warning is unavoidable when using e.g. setjmp/longjmp. MSDN 763 # This warning is unavoidable when using e.g. setjmp/longjmp. MSDN
758 # suggests using exceptions instead of setjmp/longjmp for C++, but 764 # suggests using exceptions instead of setjmp/longjmp for C++, but
759 # Chromium code compiles without exception support. We therefore have to 765 # Chromium code compiles without exception support. We therefore have to
760 # use setjmp/longjmp for e.g. JPEG decode error handling, which means we 766 # use setjmp/longjmp for e.g. JPEG decode error handling, which means we
761 # have to turn off this warning (and be careful about how object 767 # have to turn off this warning (and be careful about how object
762 # destruction happens in such cases). 768 # destruction happens in such cases).
763 "/wd4611", 769 "/wd4611",
764 770
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 cflags += [ "-gsplit-dwarf" ] 1241 cflags += [ "-gsplit-dwarf" ]
1236 } 1242 }
1237 } 1243 }
1238 } 1244 }
1239 1245
1240 config("no_symbols") { 1246 config("no_symbols") {
1241 if (!is_win) { 1247 if (!is_win) {
1242 cflags = [ "-g0" ] 1248 cflags = [ "-g0" ]
1243 } 1249 }
1244 } 1250 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698