| Index: sdch/BUILD.gn
 | 
| diff --git a/sdch/BUILD.gn b/sdch/BUILD.gn
 | 
| index 6121dfc25b30621f107e10720e934ce5e78a3f2a..4c6c5205cb067f0b953c42e4b6c6a24b46795c2f 100644
 | 
| --- a/sdch/BUILD.gn
 | 
| +++ b/sdch/BUILD.gn
 | 
| @@ -6,6 +6,17 @@ config("sdch_config") {
 | 
|    include_dirs = [ "open-vcdiff/src" ]
 | 
|  }
 | 
|  
 | 
| +# gn orders flags on a target before flags from configs. The default config
 | 
| +# adds -Wall, and these flags have to be after -Wall -- so they need to come
 | 
| +# from a config and can't be on the target directly.
 | 
| +config("sdch_warnings") {
 | 
| +  cflags = []
 | 
| +  if (is_linux) {
 | 
| +    # TODO(mostynb): remove this if open-vcdiff is ever updated for c++11:
 | 
| +    cflags += [ "-Wno-deprecated-declarations" ]
 | 
| +  }
 | 
| +}
 | 
| +
 | 
|  static_library("sdch") {
 | 
|    sources = [
 | 
|      "logging_forward.h",
 | 
| @@ -42,6 +53,7 @@ static_library("sdch") {
 | 
|      "open-vcdiff/vsprojects/stdint.h",
 | 
|    ]
 | 
|  
 | 
| +  configs += [ ":sdch_warnings" ]
 | 
|    public_configs = [ ":sdch_config" ]
 | 
|  
 | 
|    deps = [
 | 
| @@ -49,18 +61,6 @@ static_library("sdch") {
 | 
|      "//third_party/zlib",
 | 
|    ]
 | 
|  
 | 
| -  # gn orders flags on a target before flags from configs. The default config
 | 
| -  # adds -Wall, and these flags have to be after -Wall -- so they need to come
 | 
| -  # from a config and can't be on the target directly.
 | 
| -  config("sdch_warnings") {
 | 
| -    cflags = []
 | 
| -    if (is_linux) {
 | 
| -      # TODO(mostynb): remove this if open-vcdiff is ever updated for c++11:
 | 
| -      cflags += [ "-Wno-deprecated-declarations" ]
 | 
| -    }
 | 
| -  }
 | 
| -  configs += [ ":sdch_warnings" ]
 | 
| -
 | 
|    if (is_linux || is_android) {
 | 
|      include_dirs = [ "linux" ]
 | 
|    } else if (is_ios) {
 | 
| 
 |