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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 cflags = [] | 76 cflags = [] |
77 | 77 |
78 if (is_win) { | 78 if (is_win) { |
79 cflags += [ | 79 cflags += [ |
80 # TODO(jschuh): http://crbug.com/167187 size_t -> int | 80 # TODO(jschuh): http://crbug.com/167187 size_t -> int |
81 "/wd4267", | 81 "/wd4267", |
82 ] | 82 ] |
83 } | 83 } |
84 | 84 |
85 if (is_posix && !is_mac) { | 85 if (is_posix && !is_mac && !is_clang) { |
86 cflags += [ | 86 cflags += [ |
87 "-Wno-unused-value", | 87 "-Wno-unused-value", |
88 "-Wno-unused-variable", | 88 "-Wno-unused-variable", |
89 "-Wno-write-strings", | 89 "-Wno-write-strings", |
90 ] | 90 ] |
91 } | 91 } |
92 | 92 |
93 if (is_posix && !is_mac && !is_ios) { | 93 if (is_posix && !is_mac && !is_ios && !is_clang) { |
94 cflags += [ | 94 cflags += [ |
95 # affentry.hxx has NULL as default parameter for a FLAG in two | 95 # affentry.hxx has NULL as default parameter for a FLAG in two |
96 # places. | 96 # places. |
97 "-Wno-conversion-null", | 97 "-Wno-conversion-null", |
98 ] | 98 ] |
99 } | 99 } |
100 | 100 |
101 if (is_clang) { | 101 if (is_clang) { |
102 cflags += [ | 102 cflags += [ |
103 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. | 103 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. |
104 "-Wno-empty-body", | 104 "-Wno-empty-body", |
105 | 105 |
106 # affentry.hxx has NULL as default parameter for a FLAG in two | 106 # affentry.hxx has NULL as default parameter for a FLAG in two |
107 # places. | 107 # places. |
108 "-Wno-null-conversion", | 108 "-Wno-null-conversion", |
109 ] | 109 ] |
110 } | 110 } |
111 } | 111 } |
OLD | NEW |