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

Side by Side Diff: third_party/libxml/BUILD.gn

Issue 2783763002: Gcc: Suppress warnings in third_party (Closed)
Patch Set: add is_linux 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
« no previous file with comments | « no previous file | third_party/yasm/BUILD.gn » ('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 (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 # Define an "os_include" variable that points at the OS-specific generated 5 # Define an "os_include" variable that points at the OS-specific generated
6 # headers. These were generated by running the configure script offline. 6 # headers. These were generated by running the configure script offline.
7 if (is_linux || is_android || is_nacl) { 7 if (is_linux || is_android || is_nacl) {
8 os_include = "linux" 8 os_include = "linux"
9 } else if (is_mac || is_ios) { 9 } else if (is_mac || is_ios) {
10 os_include = "mac" 10 os_include = "mac"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 "-Wno-int-to-void-pointer-cast", 53 "-Wno-int-to-void-pointer-cast",
54 54
55 # libxml passes a volatile LPCRITICAL_SECTION* to a function expecting 55 # libxml passes a volatile LPCRITICAL_SECTION* to a function expecting
56 # a void* volatile*. 56 # a void* volatile*.
57 "-Wno-incompatible-pointer-types", 57 "-Wno-incompatible-pointer-types",
58 58
59 # trio_is_special_quantity and trio_is_negative are only 59 # trio_is_special_quantity and trio_is_negative are only
60 # used with certain preprocessor defines set. 60 # used with certain preprocessor defines set.
61 "-Wno-unused-function", 61 "-Wno-unused-function",
62 ] 62 ]
63 } else if (is_linux) {
64 cflags = [
65 # gcc spits out a bunch of warnings about passing too many arguments to
66 # __xmlSimpleError.
67 "-Wno-format-extra-args",
68 ]
63 } 69 }
64 } 70 }
65 71
66 static_library("libxml") { 72 static_library("libxml") {
67 output_name = "libxml2" 73 output_name = "libxml2"
68 sources = [ 74 sources = [
69 "chromium/libxml_utils.cc", 75 "chromium/libxml_utils.cc",
70 "chromium/libxml_utils.h", 76 "chromium/libxml_utils.h",
71 "linux/config.h", 77 "linux/config.h",
72 "linux/include/libxml/xmlversion.h", 78 "linux/include/libxml/xmlversion.h",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 if (is_mac || is_ios || is_android) { 207 if (is_mac || is_ios || is_android) {
202 # http://www.xmlsoft.org/threads.html says that this is required when using 208 # http://www.xmlsoft.org/threads.html says that this is required when using
203 # libxml from several threads, which can possibly happen in chrome. On 209 # libxml from several threads, which can possibly happen in chrome. On
204 # linux, this is picked up by transitivity from pkg-config output from 210 # linux, this is picked up by transitivity from pkg-config output from
205 # build/linux/system.gyp. 211 # build/linux/system.gyp.
206 defines = [ "_REENTRANT" ] 212 defines = [ "_REENTRANT" ]
207 } 213 }
208 214
209 include_dirs = [ "$os_include" ] 215 include_dirs = [ "$os_include" ]
210 } 216 }
OLDNEW
« no previous file with comments | « no previous file | third_party/yasm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698