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

Issue 1607053003: XFA: Unconditionally use static png_gt() in png.c (Closed)

Created:
4 years, 11 months ago by Oliver Chang
Modified:
4 years, 11 months ago
Reviewers:
Lei Zhang, Nico
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

XFA: Unconditionally use static png_gt() in png.c This is to avoid a compilation warning. R=thakis@chromium.org TBR=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/fd5f130ac81537c9066f5fb7998fdf08f501b40e

Patch Set 1 #

Patch Set 2 : README.pdfium #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
A third_party/libpng16/0002-static-png-gt.patch View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/libpng16/README.pdfium View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/libpng16/png.c View 1 chunk +2 lines, -1 line 2 comments Download

Messages

Total messages: 9 (5 generated)
Oliver Chang
ptal
4 years, 11 months ago (2016-01-19 20:42:28 UTC) #5
Nico
lgtm, thanks! https://codereview.chromium.org/1607053003/diff/40001/third_party/libpng16/png.c File third_party/libpng16/png.c (left): https://codereview.chromium.org/1607053003/diff/40001/third_party/libpng16/png.c#oldcode2467 third_party/libpng16/png.c:2467: #ifdef __GNUC__ other possible fixes: * Change ...
4 years, 11 months ago (2016-01-19 21:46:23 UTC) #6
Oliver Chang
Committed patchset #2 (id:40001) manually as fd5f130ac81537c9066f5fb7998fdf08f501b40e (presubmit successful).
4 years, 11 months ago (2016-01-19 22:34:29 UTC) #8
Oliver Chang
4 years, 11 months ago (2016-01-19 22:35:47 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1607053003/diff/40001/third_party/libpng16/png.c
File third_party/libpng16/png.c (left):

https://codereview.chromium.org/1607053003/diff/40001/third_party/libpng16/pn...
third_party/libpng16/png.c:2467: #ifdef __GNUC__
On 2016/01/19 21:46:23, Nico wrote:
> other possible fixes:
> 
> * Change this line to `#if defined(__GNUC__) || defined(__clang__)` -- clang
> defined __GNUC__ in gcc-compat mode, but not in clang-cl mode
> 
> * Just disable this warning for this target

Hmm, I think this is still a valuable warning to keep in, in case legitimate
bugs are introduced in the future?

Powered by Google App Engine
This is Rietveld 408576698