Remove fx_freetype_warnings config. The warnings no longer occur as of the FreeType DEPS roll in https://pdfium-review.googlesource.com/54410. Change-Id: Ia7b4eee5854d43819db0dbbb63b49b29ba419c50 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/69872 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 4d6f5bf..42e68f6 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn
@@ -47,20 +47,6 @@ } if (pdf_bundle_freetype) { - config("fx_freetype_warnings") { - visibility = [ ":*" ] - if (is_clang) { - # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in - # ftbase.h are unused. - # - # ttgload.c casts from unsigned int to unsigned long to void*. - cflags = [ - "-Wno-unused-function", - "-Wno-int-to-void-pointer-cast", - ] - } - } - config("freetype_public_includes_config") { # The relative freetype/include path points to PDFium's custom config. # The absolute path points to whatever copy of FreeType is in @@ -85,9 +71,6 @@ configs += [ "//build/config/compiler:no_chromium_code", ":pdfium_third_party_config", - - # Must be after no_chromium_code for warning flags to be ordered correctly. - ":fx_freetype_warnings", ] public_configs = [ ":freetype_public_includes_config" ]