Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: third_party/libpng/libpng.gyp

Issue 2069593002: Suppress libpng clang warning on GYP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698