Index: sdch/sdch.gyp |
diff --git a/sdch/sdch.gyp b/sdch/sdch.gyp |
index 8d609d5d4a21967f82fe7768d2496f81ec0d72b8..99bcbd02ce86946dd8dee795c69c3db70778442c 100644 |
--- a/sdch/sdch.gyp |
+++ b/sdch/sdch.gyp |
@@ -58,8 +58,13 @@ |
[ 'OS == "ios"', { 'include_dirs': [ 'ios' ] } ], |
[ 'OS == "mac"', { 'include_dirs': [ 'mac' ] } ], |
[ 'OS == "win"', { 'include_dirs': [ 'open-vcdiff/vsprojects' ] } ], |
- # TODO(mark): Remove usage of the deprecated auto_ptr. |
- [ 'clang == 1', { 'cflags': [ '-Wno-deprecated-declarations' ] } ], |
+ ['clang==1', { |
+ # open-vcdiff uses intentional fallthroughs. |
+ 'xcode_settings': { 'WARNING_CFLAGS!': [ '-Wimplicit-fallthrough' ] }, |
+ 'cflags!': [ '-Wimplicit-fallthrough' ], |
+ # TODO(mark): Remove usage of the deprecated auto_ptr. |
+ 'cflags': [ '-Wno-deprecated-declarations' ] } |
+ }], |
], |
# open-vcdiff's logging.h introduces static initializers. This was |
# reported upstream years ago ( |