diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-13 15:03:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-13 15:03:21 -0700 |
commit | 5312f9a6ed88e653f4cfb604d892ca18da75e721 (patch) | |
tree | 900df7177228118df3f96b18815b1149838fb3b9 /third_party/third_party.gyp | |
parent | 9311163b564785a3a3ccdcb09bd3b7d0b2976d1a (diff) | |
download | pdfium-5312f9a6ed88e653f4cfb604d892ca18da75e721.tar.xz |
Suppress -Wunused-function for pdfium's third-party libraries.
Also add a missing header file.
BUG=505316
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1285123003 .
Diffstat (limited to 'third_party/third_party.gyp')
-rw-r--r-- | third_party/third_party.gyp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp index 4403f3cdac..6ad8beb48c 100644 --- a/third_party/third_party.gyp +++ b/third_party/third_party.gyp @@ -52,6 +52,7 @@ 'freetype/src/cff/cfftypes.h', 'freetype/src/cff/cff.c', 'freetype/src/base/ftbase.c', + 'freetype/src/base/ftbase.h', 'freetype/src/base/ftbitmap.c', 'freetype/src/base/ftglyph.c', 'freetype/src/base/ftinit.c', @@ -68,6 +69,13 @@ 'freetype/src/type1/type1.c', 'freetype/src/cid/type1cid.c', ], + 'variables': { + 'clang_warning_flags': [ + # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in + # ftbase.h are unused. + '-Wno-unused-function', + ], + }, }, { 'target_name': 'fx_agg', @@ -95,6 +103,12 @@ 'cflags': [ '-Wno-extra', ], }], ], + 'variables': { + 'clang_warning_flags': [ + # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. + '-Wno-unused-function', + ], + }, }, { 'target_name': 'fx_lcms2', @@ -140,6 +154,8 @@ 'variables': { 'clang_warning_flags': [ '-Wno-missing-braces', + # FindPrev() in cmsplugin.c is unused. + '-Wno-unused-function', ], }, }, |