Switch clang conditional to vary on gcc version, which is more correct.
diff --git a/icu.gyp b/icu.gyp
index dcd1c5a..2fbb667 100644
--- a/icu.gyp
+++ b/icu.gyp
@@ -264,15 +264,11 @@
# inline code with an unused variable.
[ 'os_posix == 1 and OS != "mac"', {
'conditions': [
- ['clang==1', {
- 'cflags': [
- '-Wno-unused-variable',
- ]
+ ['<(gcc_version) < 46', {
+ 'cflags': ['-Wno-unused-variable']
}, {
- 'cflags': [
- '-Wno-unused-but-set-variable',
- ]
- }]
+ 'cflags': ['-Wno-unused-but-set-variable']
+ }],
],
}],
],