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

Side by Side Diff: BUILD.gn

Issue 1224463003: Suppress "unused-const-variable" Clang warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Rebase. 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 | « no previous file | icu.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//third_party/icu/config.gni") 5 import("//third_party/icu/config.gni")
6 6
7 # Meta target that includes both icuuc and icui18n. Most targets want both. 7 # Meta target that includes both icuuc and icui18n. Most targets want both.
8 # You can depend on the individually if you need to. 8 # You can depend on the individually if you need to.
9 group("icu") { 9 group("icu") {
10 deps = [ 10 deps = [
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "-Wno-unused-function", 65 "-Wno-unused-function",
66 ] 66 ]
67 } 67 }
68 if (is_clang) { 68 if (is_clang) {
69 cflags += [ 69 cflags += [
70 "-Wno-deprecated-declarations", 70 "-Wno-deprecated-declarations",
71 "-Wno-logical-op-parentheses", 71 "-Wno-logical-op-parentheses",
72 "-Wno-tautological-compare", 72 "-Wno-tautological-compare",
73 "-Wno-switch", 73 "-Wno-switch",
74 "-Wno-parentheses", 74 "-Wno-parentheses",
75 ] 75 # ICU generally has no unused variables, but there are a few places where
76 # this warning triggers.
77 # See https://codereview.chromium.org/1222643002/ and
78 # http://www.icu-project.org/trac/ticket/11759.
79 "-Wno-unused-const-variable",
80 ]
76 if (is_win) { 81 if (is_win) {
77 cflags += [ 82 cflags += [
78 # See http://bugs.icu-project.org/trac/ticket/11122 83 # See http://bugs.icu-project.org/trac/ticket/11122
79 "-Wno-inline-new-delete", 84 "-Wno-inline-new-delete",
80 "-Wno-implicit-exception-spec-mismatch", 85 "-Wno-implicit-exception-spec-mismatch",
81 # See http://bugs.icu-project.org/trac/ticket/11757. 86 # See http://bugs.icu-project.org/trac/ticket/11757.
82 "-Wno-reorder", 87 "-Wno-reorder",
83 ] 88 ]
84 } 89 }
85 } 90 }
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 ] 491 ]
487 492
488 configs -= [ 493 configs -= [
489 "//build/config/compiler:no_rtti", # ICU uses RTTI. 494 "//build/config/compiler:no_rtti", # ICU uses RTTI.
490 "//build/config/compiler:chromium_code", 495 "//build/config/compiler:chromium_code",
491 ] 496 ]
492 configs += [ 497 configs += [
493 "//build/config/compiler:rtti", 498 "//build/config/compiler:rtti",
494 "//build/config/compiler:no_chromium_code", 499 "//build/config/compiler:no_chromium_code",
495 ] 500 ]
501 configs += [ ":icu_code" ]
Peter Mayo 2015/07/06 18:01:56 Is this an accident? It fails my gen rebuild.
Nico 2015/07/06 18:03:31 Yes, that looks like an accident (the same is adde
Matt Giuca 2015/07/07 03:15:53 Oh no, looks like a rebase accident (wasn't a prob
496 502
497 configs += [ ":icu_code" ] 503 configs += [ ":icu_code" ]
498 public_configs = [ ":icu_config" ] 504 public_configs = [ ":icu_config" ]
499 505
500 if (is_win || icu_use_data_file) { 506 if (is_win || icu_use_data_file) {
501 sources += [ "source/stubdata/stubdata.c" ] 507 sources += [ "source/stubdata/stubdata.c" ]
502 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] 508 defines += [ "U_ICUDATAENTRY_IN_COMMON" ]
503 } 509 }
504 } 510 }
505 511
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 sources = [ 571 sources = [
566 "android/icudtl_dat.S", 572 "android/icudtl_dat.S",
567 ] 573 ]
568 } else { 574 } else {
569 assert(false, "No icu data for this platform") 575 assert(false, "No icu data for this platform")
570 } 576 }
571 defines = [ "U_HIDE_DATA_SYMBOL" ] 577 defines = [ "U_HIDE_DATA_SYMBOL" ]
572 } 578 }
573 } 579 }
574 } 580 }
OLDNEW
« no previous file with comments | « no previous file | icu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698