Index: third_party/libpng/libpng.gyp |
diff --git a/third_party/libpng/libpng.gyp b/third_party/libpng/libpng.gyp |
index 130bd2562d08ba6ee7c13338d200b6928d556343..7ce9b5ed7fc18806da1fc3d739520c6a1f54ea5f 100644 |
--- a/third_party/libpng/libpng.gyp |
+++ b/third_party/libpng/libpng.gyp |
@@ -9,6 +9,12 @@ |
'dependencies': [ |
'../zlib/zlib.gyp:zlib', |
], |
+ 'variables': { |
+ # libpng checks that the width is not greater than PNG_SIZE_MAX. |
+ # On platforms where size_t is 64-bits, this comparison will always |
+ # be false. |
+ 'clang_warning_flags': [ '-Wno-tautological-constant-out-of-range-compare' ], |
+ }, |
'sources': [ |
'png.c', |
'png.h', |