| Index: third_party/snappy/BUILD.gn
|
| diff --git a/third_party/snappy/BUILD.gn b/third_party/snappy/BUILD.gn
|
| index 8ab472d371c696b74c50001ece68fde4dcdf448a..97cce89bc719d8425d88b54a724bb0d758027c81 100644
|
| --- a/third_party/snappy/BUILD.gn
|
| +++ b/third_party/snappy/BUILD.gn
|
| @@ -16,14 +16,6 @@
|
| }
|
| }
|
|
|
| -config("snappy_warnings") {
|
| - if (is_clang) {
|
| - # ComputeTable is unused,
|
| - # https://code.google.com/p/snappy/issues/detail?id=96
|
| - cflags = [ "-Wno-unused-function" ]
|
| - }
|
| -}
|
| -
|
| static_library("snappy") {
|
| sources = [
|
| "src/snappy-internal.h",
|
| @@ -35,11 +27,16 @@
|
| "src/snappy.h",
|
| ]
|
|
|
| + config("snappy_warnings") {
|
| + if (is_clang) {
|
| + # ComputeTable is unused,
|
| + # https://code.google.com/p/snappy/issues/detail?id=96
|
| + cflags = [ "-Wno-unused-function" ]
|
| + }
|
| + }
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| - configs += [
|
| - ":snappy_warnings",
|
| - "//build/config/compiler:no_chromium_code",
|
| - ]
|
| + configs += [ "//build/config/compiler:no_chromium_code" ]
|
| + configs += [ ":snappy_warnings" ]
|
| public_configs = [ ":snappy_config" ]
|
|
|
| if (is_win) {
|
|
|