From fd5f130ac81537c9066f5fb7998fdf08f501b40e Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 19 Jan 2016 14:34:25 -0800 Subject: XFA: Unconditionally use static png_gt() in png.c This is to avoid a compilation warning. R=thakis@chromium.org TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1607053003 . --- third_party/libpng16/0002-static-png-gt.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 third_party/libpng16/0002-static-png-gt.patch (limited to 'third_party/libpng16/0002-static-png-gt.patch') diff --git a/third_party/libpng16/0002-static-png-gt.patch b/third_party/libpng16/0002-static-png-gt.patch new file mode 100644 index 0000000000..b2b1d94971 --- /dev/null +++ b/third_party/libpng16/0002-static-png-gt.patch @@ -0,0 +1,14 @@ +diff --git a/third_party/libpng16/png.c b/third_party/libpng16/png.c +index c183e3f..1cf5271 100644 +--- a/third_party/libpng16/png.c ++++ b/third_party/libpng16/png.c +@@ -2464,7 +2464,8 @@ png_colorspace_set_rgb_coefficients(png_structrp png_ptr) + + #endif /* COLORSPACE */ + +-#ifdef __GNUC__ ++/* #ifdef __GNUC__ */ ++#if 1 + /* This exists solely to work round a warning from GNU C. */ + static int /* PRIVATE */ + png_gt(size_t a, size_t b) -- cgit v1.2.3