diff options
author | thakis@chromium.org <thakis@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2012-02-15 16:41:42 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2012-02-15 16:41:42 +0000 |
commit | 9e3d8cef668c5b3ad61ae2bea3d500ae44090ff8 (patch) | |
tree | bc427142719641b78664116d59cb1858b7b92ea9 /icu.gyp | |
parent | d04cce62ba705430b53ea5f2544e3d96aa3385c9 (diff) | |
download | icu-9e3d8cef668c5b3ad61ae2bea3d500ae44090ff8.tar.gz |
Add -Wno-switch to ICU.
-Wswitch started warning about a construct that ICU uses here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=148649
TBR=evan
Review URL: https://chromiumcodereview.appspot.com/9347044
git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@122096 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Diffstat (limited to 'icu.gyp')
-rw-r--r-- | icu.gyp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -333,6 +333,12 @@ # the header should use U_NAMESPACE_BEGIN instead. # http://bugs.icu-project.org/trac/ticket/9054 '-Wno-header-hygiene', + # uresdata.c has switch(RES_GET_TYPE(x)) code. The + # RES_GET_TYPE macro returns an UResType enum, but some switch + # statement contains case values that aren't part of that + # enum (e.g. URES_TABLE32 which is in UResInternalType). This + # is on purpose. + '-Wno-switch', ], }, 'cflags': [ @@ -340,6 +346,7 @@ '-Wno-logical-op-parentheses', '-Wno-tautological-compare', '-Wno-header-hygiene', + '-Wno-switch', ], }], ], |