Update clang warnings after r287092.
Review URL: https://codereview.chromium.org/438963006
git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/hunspell@287123 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/hunspell.gyp b/hunspell.gyp
index 4632096..cc09799 100644
--- a/hunspell.gyp
+++ b/hunspell.gyp
@@ -63,6 +63,15 @@
'USE_HUNSPELL',
],
},
+ 'variables': {
+ 'clang_warning_flags': [
+ # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop.
+ '-Wno-empty-body',
+ # affentry.hxx has NULL as default parameter for a FLAG in two
+ # places.
+ '-Wno-null-conversion',
+ ],
+ },
# TODO(jschuh): http://crbug.com/167187 size_t -> int
'msvs_disabled_warnings': [ 4267 ],
'conditions': [
@@ -80,21 +89,6 @@
'-Wno-conversion-null',
],
}],
- ['clang == 1', {
- 'xcode_settings': {
- 'WARNING_CFLAGS': [
- # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop.
- '-Wno-empty-body',
- # affentry.hxx has NULL as default parameter for a FLAG in two
- # places.
- '-Wno-null-conversion',
- ],
- },
- 'cflags': [
- '-Wno-empty-body',
- '-Wno-null-conversion',
- ],
- }],
],
},
],