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

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

Issue 2059143003: Disable "taking address of packed member" clang warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable "taking address of packed member" clang warning. Created 4 years, 6 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 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/nacl/config.gni") 8 import("//build/config/nacl/config.gni")
9 import("//build/toolchain/cc_wrapper.gni") 9 import("//build/toolchain/cc_wrapper.gni")
10 import("//build/toolchain/toolchain.gni") 10 import("//build/toolchain/toolchain.gni")
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 # one version or the other. 1001 # one version or the other.
1002 if (!is_nacl) { 1002 if (!is_nacl) {
1003 # Flags NaCl (Clang 3.7) does not recognize. 1003 # Flags NaCl (Clang 3.7) does not recognize.
1004 cflags += [ 1004 cflags += [
1005 # TODO(thakis): Enable this, crbug.com/507717 1005 # TODO(thakis): Enable this, crbug.com/507717
1006 "-Wno-shift-negative-value", 1006 "-Wno-shift-negative-value",
1007 1007
1008 # TODO(thakis): https://crbug.com/604888 1008 # TODO(thakis): https://crbug.com/604888
1009 "-Wno-undefined-var-template", 1009 "-Wno-undefined-var-template",
1010 ] 1010 ]
1011
1012 if (llvm_force_head_revision) {
1013 cflags += [
1014 # TODO(eugenis): Clean up, http://crbug.com/619640
1015 "-Wno-address-of-packed-member",
1016 ]
1017 }
1011 } 1018 }
1012 } 1019 }
1013 } 1020 }
1014 1021
1015 # chromium_code --------------------------------------------------------------- 1022 # chromium_code ---------------------------------------------------------------
1016 # 1023 #
1017 # Toggles between higher and lower warnings for code that is (or isn't) 1024 # Toggles between higher and lower warnings for code that is (or isn't)
1018 # part of Chromium. 1025 # part of Chromium.
1019 1026
1020 config("chromium_code") { 1027 config("chromium_code") {
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 1490
1484 if (is_ios || is_mac) { 1491 if (is_ios || is_mac) {
1485 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1492 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1486 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1493 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1487 config("enable_arc") { 1494 config("enable_arc") {
1488 common_flags = [ "-fobjc-arc" ] 1495 common_flags = [ "-fobjc-arc" ]
1489 cflags_objc = common_flags 1496 cflags_objc = common_flags
1490 cflags_objcc = common_flags 1497 cflags_objcc = common_flags
1491 } 1498 }
1492 } 1499 }
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