OLD | NEW |
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 config("hunspell_config") { | 5 config("hunspell_config") { |
6 defines = [ | 6 defines = [ |
7 "HUNSPELL_STATIC", | 7 "HUNSPELL_STATIC", |
8 "HUNSPELL_CHROME_CLIENT", | 8 "HUNSPELL_CHROME_CLIENT", |
9 "USE_HUNSPELL", | 9 "USE_HUNSPELL", |
10 ] | 10 ] |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 if (is_posix && !is_mac) { | 76 if (is_posix && !is_mac) { |
77 cflags += [ | 77 cflags += [ |
78 "-Wno-unused-value", | 78 "-Wno-unused-value", |
79 "-Wno-unused-variable", | 79 "-Wno-unused-variable", |
80 "-Wno-write-strings", | 80 "-Wno-write-strings", |
81 ] | 81 ] |
82 } | 82 } |
83 | 83 |
84 if (is_linux) { | 84 if (is_posix && !is_mac && !is_ios) { |
85 cflags += [ | 85 cflags += [ |
86 # affentry.hxx has NULL as default parameter for a FLAG in two | 86 # affentry.hxx has NULL as default parameter for a FLAG in two |
87 # places. | 87 # places. |
88 "-Wno-conversion-null", | 88 "-Wno-conversion-null", |
89 ] | 89 ] |
90 } | 90 } |
91 | 91 |
92 if (is_clang) { | 92 if (is_clang) { |
93 cflags += [ | 93 cflags += [ |
94 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. | 94 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. |
95 "-Wno-empty-body", | 95 "-Wno-empty-body", |
96 # affentry.hxx has NULL as default parameter for a FLAG in two | 96 # affentry.hxx has NULL as default parameter for a FLAG in two |
97 # places. | 97 # places. |
98 "-Wno-null-conversion", | 98 "-Wno-null-conversion", |
99 ] | 99 ] |
100 } | 100 } |
101 } | 101 } |
OLD | NEW |