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

Issue 1785943002: Fix GCC build (Closed)

Created:
4 years, 9 months ago by hashimoto
Modified:
4 years, 9 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix GCC build -Wno-sign-compare also for GCC. -Wno-error=strict-overflow to ignore the following warning. In file included from ../../third_party/pdfium/core/include/fpdfapi/cpdf_object.h:10:0, from ../../third_party/pdfium/core/include/fpdfapi/cpdf_stream.h:10, from ../../third_party/pdfium/core/include/fpdfapi/fpdf_resource.h:12, from ../../third_party/pdfium/core/fpdfapi/fpdf_font/font_int.h:13, from ../../third_party/pdfium/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp:7: ../../third_party/pdfium/core/include/fxcrt/fx_string.h: In function 'CFX_ByteString {anonymous}::CMap_GetString(const CFX_ByteStringC&)': ../../third_party/pdfium/core/include/fxcrt/fx_string.h:111:19: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] if (count < 0 || count > m_Length - index) { BUG=589724 TEST=build with GCC R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/3420909bbb47d6e47d6c561cbcce06d056fdf0a3

Patch Set 1 #

Total comments: 4

Patch Set 2 : -Wno-error=strict-overflow #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M BUILD.gn View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 21 (4 generated)
hashimoto
4 years, 9 months ago (2016-03-11 05:51:41 UTC) #2
Dirk Pranke
adding tsepez, since I'm not an owner in pdfium. Also adding brucedawson, since I think ...
4 years, 9 months ago (2016-03-11 21:21:30 UTC) #4
brucedawson
I don't feel qualified to comment. I don't see any problems but ???
4 years, 9 months ago (2016-03-11 22:13:02 UTC) #5
hashimoto
https://codereview.chromium.org/1785943002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1785943002/diff/1/BUILD.gn#newcode68 BUILD.gn:68: if (is_posix) { On 2016/03/11 21:21:30, Dirk Pranke wrote: ...
4 years, 9 months ago (2016-03-14 06:11:31 UTC) #6
Tom Sepez
https://codereview.chromium.org/1785943002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1785943002/diff/1/BUILD.gn#newcode353 BUILD.gn:353: configs -= [ "//build/config/compiler:chromium_code" ] Can we just fix ...
4 years, 9 months ago (2016-03-14 16:46:54 UTC) #7
Tom Sepez
On 2016/03/14 16:46:54, Tom Sepez wrote: > https://codereview.chromium.org/1785943002/diff/1/BUILD.gn > File BUILD.gn (right): > > https://codereview.chromium.org/1785943002/diff/1/BUILD.gn#newcode353 ...
4 years, 9 months ago (2016-03-14 17:28:55 UTC) #8
Dirk Pranke
On 2016/03/14 06:11:31, hashimoto wrote: > https://codereview.chromium.org/1785943002/diff/1/BUILD.gn > File BUILD.gn (right): > > https://codereview.chromium.org/1785943002/diff/1/BUILD.gn#newcode68 > ...
4 years, 9 months ago (2016-03-14 20:12:58 UTC) #9
hashimoto
On 2016/03/14 17:28:55, Tom Sepez wrote: > On 2016/03/14 16:46:54, Tom Sepez wrote: > > ...
4 years, 9 months ago (2016-03-15 05:41:25 UTC) #10
hashimoto
A new patch set with "-Wno-error=strict-overflow" to suppress another warning in fpdfapi (pasted below). PTAL. ...
4 years, 9 months ago (2016-03-15 05:43:00 UTC) #11
Dirk Pranke
I defer to tsepez on this. The BUILD.gn changes are fine if it's okay to ...
4 years, 9 months ago (2016-03-15 15:37:47 UTC) #13
Tom Sepez
On 2016/03/15 15:37:47, Dirk Pranke wrote: > I defer to tsepez on this. The BUILD.gn ...
4 years, 9 months ago (2016-03-15 15:57:20 UTC) #14
hashimoto
On 2016/03/15 15:57:20, Tom Sepez wrote: > On 2016/03/15 15:37:47, Dirk Pranke wrote: > > ...
4 years, 9 months ago (2016-03-16 04:31:29 UTC) #15
dsinclair
On 2016/03/16 04:31:29, hashimoto wrote: > On 2016/03/15 15:57:20, Tom Sepez wrote: > > On ...
4 years, 9 months ago (2016-03-16 14:21:03 UTC) #16
hashimoto
Could anyone submit this change on my behalf? It seems I'm not allowed to "git ...
4 years, 9 months ago (2016-03-17 05:34:22 UTC) #17
hashimoto
tsepez@, could you land this change on behalf of me? Seems I'm not recognized as ...
4 years, 9 months ago (2016-03-18 09:23:54 UTC) #18
Tom Sepez
On 2016/03/18 09:23:54, hashimoto wrote: > tsepez@, could you land this change on behalf of ...
4 years, 9 months ago (2016-03-18 15:57:40 UTC) #19
Tom Sepez
4 years, 9 months ago (2016-03-18 16:00:40 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
3420909bbb47d6e47d6c561cbcce06d056fdf0a3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698