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

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

Issue 1249113004: Disable C4995 warning about #pragma deprecated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 # Warnings to evaluate and possibly fix/reenable later: 780 # Warnings to evaluate and possibly fix/reenable later:
781 781
782 "/wd4100", # Unreferenced formal function parameter. 782 "/wd4100", # Unreferenced formal function parameter.
783 "/wd4121", # Alignment of a member was sensitive to packing. 783 "/wd4121", # Alignment of a member was sensitive to packing.
784 "/wd4244", # Conversion: possible loss of data. 784 "/wd4244", # Conversion: possible loss of data.
785 "/wd4481", # Nonstandard extension: override specifier. 785 "/wd4481", # Nonstandard extension: override specifier.
786 "/wd4505", # Unreferenced local function has been removed. 786 "/wd4505", # Unreferenced local function has been removed.
787 "/wd4510", # Default constructor could not be generated. 787 "/wd4510", # Default constructor could not be generated.
788 "/wd4512", # Assignment operator could not be generated. 788 "/wd4512", # Assignment operator could not be generated.
789 "/wd4610", # Class can never be instantiated, constructor required. 789 "/wd4610", # Class can never be instantiated, constructor required.
790 "/wd4995", # 'X': name was marked as #pragma deprecated
790 "/wd4996", # Deprecated function warning. 791 "/wd4996", # Deprecated function warning.
791 ] 792 ]
792 793
793 # VS xtree header file needs to be patched or 4702 (unreachable code 794 # VS xtree header file needs to be patched or 4702 (unreachable code
794 # warning) is reported if _HAS_EXCEPTIONS=0. Disable the warning if xtree is 795 # warning) is reported if _HAS_EXCEPTIONS=0. Disable the warning if xtree is
795 # not patched. 796 # not patched.
796 if (!msvs_xtree_patched && 797 if (!msvs_xtree_patched &&
797 exec_script("../../win_is_xtree_patched.py", [], "value") == 0) { 798 exec_script("../../win_is_xtree_patched.py", [], "value") == 0) {
798 default_warning_flags += [ "/wd4702" ] # Unreachable code. 799 default_warning_flags += [ "/wd4702" ] # Unreachable code.
799 } 800 }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 cflags += [ "-gsplit-dwarf" ] 1259 cflags += [ "-gsplit-dwarf" ]
1259 } 1260 }
1260 } 1261 }
1261 } 1262 }
1262 1263
1263 config("no_symbols") { 1264 config("no_symbols") {
1264 if (!is_win) { 1265 if (!is_win) {
1265 cflags = [ "-g0" ] 1266 cflags = [ "-g0" ]
1266 } 1267 }
1267 } 1268 }
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