summaryrefslogtreecommitdiffstats
path: root/third_party/libwebp/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebp/BUILD.gn')
-rw-r--r--third_party/libwebp/BUILD.gn13
1 files changed, 7 insertions, 6 deletions
diff --git a/third_party/libwebp/BUILD.gn b/third_party/libwebp/BUILD.gn
index 3259ec3..d52e1da 100644
--- a/third_party/libwebp/BUILD.gn
+++ b/third_party/libwebp/BUILD.gn
@@ -162,6 +162,13 @@ source_set("libwebp_enc") {
]
}
+config("libwebp_utils_warnings") {
+ if (is_clang) {
+ # See https://code.google.com/p/webp/issues/detail?id=253.
+ cflags = [ "-Wno-incompatible-pointer-types" ]
+ }
+}
+
source_set("libwebp_utils") {
sources = [
"utils/bit_reader.c",
@@ -182,12 +189,6 @@ source_set("libwebp_utils") {
all_dependent_configs = [ ":libwebp_config" ]
- config("libwebp_utils_warnings") {
- if (is_clang) {
- # See https://code.google.com/p/webp/issues/detail?id=253.
- cflags = [ "-Wno-incompatible-pointer-types" ]
- }
- }
public_configs = [ ":libwebp_utils_warnings" ]
}