Only add Mac compiler warning for clang, not gcc.

BUG=
TEST=

Review URL: https://webrtc-codereview.appspot.com/676007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2466 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2012-06-28 17:28:06 +00:00
parent 1115fdbe69
commit efe20b39db

View File

@ -10,15 +10,19 @@
# The target_defaults block is unique to the WebRTC libvpx.gyp.
'target_defaults': {
'conditions': [
['OS=="mac"', {
['clang == 1', {
'xcode_settings': {
'WARNING_CFLAGS': [
'-Wno-implicit-function-declaration',
# TODO(andrew): this one should be fixed upstream.
'-Wno-parentheses-equality',
# libvpx heavily relies on implicit enum casting.
'-Wno-conversion',
# libvpx does `if ((a == b))` in some places.
'-Wno-parentheses-equality',
],
},
'cflags': [
'-Wno-conversion',
'-Wno-parentheses-equality',
],
}],
],
},