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

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

Issue 2786273002: Revert of Enable -Wdeprecated-register (except on CrOS). (Closed)
Patch Set: Created 3 years, 8 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
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 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/compiler/compiler.gni") 8 import("//build/config/compiler/compiler.gni")
9 import("//build/config/nacl/config.gni") 9 import("//build/config/nacl/config.gni")
10 import("//build/toolchain/cc_wrapper.gni") 10 import("//build/toolchain/cc_wrapper.gni")
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 # This warns on using ints as initializers for floats in 1057 # This warns on using ints as initializers for floats in
1058 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), 1058 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|),
1059 # which happens in several places in chrome code. Not sure if 1059 # which happens in several places in chrome code. Not sure if
1060 # this is worth fixing. 1060 # this is worth fixing.
1061 "-Wno-c++11-narrowing", 1061 "-Wno-c++11-narrowing",
1062 1062
1063 # Warns on switches on enums that cover all enum values but 1063 # Warns on switches on enums that cover all enum values but
1064 # also contain a default: branch. Chrome is full of that. 1064 # also contain a default: branch. Chrome is full of that.
1065 "-Wno-covered-switch-default", 1065 "-Wno-covered-switch-default",
1066 1066
1067 # Clang considers the `register` keyword as deprecated, but e.g.
1068 # code generated by flex (used in angle) contains that keyword.
1069 # http://crbug.com/255186
1070 "-Wno-deprecated-register",
1071
1067 # TODO(thakis): This used to be implied by -Wno-unused-function, 1072 # TODO(thakis): This used to be implied by -Wno-unused-function,
1068 # which we no longer use. Check if it makes sense to remove 1073 # which we no longer use. Check if it makes sense to remove
1069 # this as well. http://crbug.com/316352 1074 # this as well. http://crbug.com/316352
1070 "-Wno-unneeded-internal-declaration", 1075 "-Wno-unneeded-internal-declaration",
1071 1076
1072 # TODO(hans): Get this cleaned up, http://crbug.com/428099 1077 # TODO(hans): Get this cleaned up, http://crbug.com/428099
1073 "-Wno-inconsistent-missing-override", 1078 "-Wno-inconsistent-missing-override",
1074 ] 1079 ]
1075 1080
1076 if (is_chromeos) {
1077 cflags += [
1078 # TODO(thakis): Figure out why CrOS needs this, fix, remove.
1079 # https://crbug.com/806812
1080 "-Wno-deprecated-register",
1081 ]
1082 }
1083
1084 # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang 1081 # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang
1085 # compiler will almost always have different versions. Certain flags may not 1082 # compiler will almost always have different versions. Certain flags may not
1086 # be recognized by one version or the other. 1083 # be recognized by one version or the other.
1087 if (!is_nacl) { 1084 if (!is_nacl) {
1088 # Flags NaCl (Clang 3.7) does not recognize. 1085 # Flags NaCl (Clang 3.7) does not recognize.
1089 cflags += [ 1086 cflags += [
1090 # TODO(thakis): Enable this, crbug.com/507717 1087 # TODO(thakis): Enable this, crbug.com/507717
1091 "-Wno-shift-negative-value", 1088 "-Wno-shift-negative-value",
1092 ] 1089 ]
1093 } 1090 }
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 1720
1724 if (is_ios || is_mac) { 1721 if (is_ios || is_mac) {
1725 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1722 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1726 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1723 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1727 config("enable_arc") { 1724 config("enable_arc") {
1728 common_flags = [ "-fobjc-arc" ] 1725 common_flags = [ "-fobjc-arc" ]
1729 cflags_objc = common_flags 1726 cflags_objc = common_flags
1730 cflags_objcc = common_flags 1727 cflags_objcc = common_flags
1731 } 1728 }
1732 } 1729 }
OLDNEW
« no previous file with comments | « base/third_party/dmg_fp/g_fmt.cc ('k') | third_party/WebKit/Source/build/scripts/make_css_property_names.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698