diff options
author | dcheng <dcheng@chromium.org> | 2015-07-08 01:12:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-08 08:13:36 +0000 |
commit | 5111996850ca220174e6f55350ad1e2d9099dfc6 (patch) | |
tree | 4f156893efbe5467c7cf0fcf7f5231213689caf0 /third_party/iaccessible2 | |
parent | f4222a3a241a499415ca55c05cbc1a7c37a9e504 (diff) | |
download | chromium_src-5111996850ca220174e6f55350ad1e2d9099dfc6.zip chromium_src-5111996850ca220174e6f55350ad1e2d9099dfc6.tar.gz chromium_src-5111996850ca220174e6f55350ad1e2d9099dfc6.tar.bz2 |
Fix remaining warnings for -Wmissing-braces and enable on win clang.
Missing braces have been located and restored to their rightful
positions.
BUG=505297
TBR=aboxhall,ananta,atwilson,hajimehoshi,jamiewalch,vitalybuka
Review URL: https://codereview.chromium.org/1216413002
Cr-Commit-Position: refs/heads/master@{#337781}
Diffstat (limited to 'third_party/iaccessible2')
-rw-r--r-- | third_party/iaccessible2/BUILD.gn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/iaccessible2/BUILD.gn b/third_party/iaccessible2/BUILD.gn index 6ebcee6..9026674 100644 --- a/third_party/iaccessible2/BUILD.gn +++ b/third_party/iaccessible2/BUILD.gn @@ -20,8 +20,15 @@ shared_library("IAccessible2Proxy") { "IAccessible2Proxy.def", ] + config("IAccessible2Proxy_warnings") { + if (is_clang) { + # MIDL generated code has a habit of omitting optional braces. + cflags = [ "-Wno-missing-braces" ] + } + } configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ ":IAccessible2Proxy_warnings" ] defines = [ "REGISTER_PROXY_DLL" ] |