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

Issue 1098583002: Fix a bunch of -Wunused-but-set-variable warnings. (Closed)

Created:
5 years, 8 months ago by Lei Zhang
Modified:
5 years, 7 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix a bunch of -Wunused-but-set-variable warnings. Also fix a few nits and other errors along the way. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/f0a169e6fd5718995fa6ef8749c8d16cdad84985

Patch Set 1 #

Total comments: 21

Patch Set 2 : rebase, address some comments #

Total comments: 4

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -78 lines) Patch
M core/include/fxcrt/fx_system.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/pageint.h View 1 chunk +2 lines, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M core/src/fpdftext/fpdf_text.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 1 4 chunks +0 lines, -7 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_jpx_opj.cpp View 1 2 13 chunks +36 lines, -45 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp View 8 chunks +2 lines, -8 lines 0 comments Download
M core/src/fxge/dib/fx_dib_composite.cpp View 1 1 chunk +1 line, -9 lines 0 comments Download
M core/src/fxge/dib/fx_dib_transform.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M core/src/fxge/ge/fx_ge_fontmap.cpp View 1 1 chunk +16 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Lei Zhang
https://codereview.chromium.org/1098583002/diff/1/core/src/fpdfapi/fpdf_page/pageint.h File core/src/fpdfapi/fpdf_page/pageint.h (right): https://codereview.chromium.org/1098583002/diff/1/core/src/fpdfapi/fpdf_page/pageint.h#newcode428 core/src/fpdfapi/fpdf_page/pageint.h:428: FX_INT32 m_nSrcComponents; This is the only one I can ...
5 years, 8 months ago (2015-04-17 00:34:11 UTC) #1
Lei Zhang
Forgot to add you.
5 years, 8 months ago (2015-04-17 00:34:22 UTC) #3
Tom Sepez
On 2015/04/17 00:34:22, Lei Zhang wrote: > Forgot to add you. Also see https://codereview.chromium.org/818363006/, which ...
5 years, 8 months ago (2015-04-17 15:38:20 UTC) #4
Tom Sepez
https://codereview.chromium.org/1098583002/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp (right): https://codereview.chromium.org/1098583002/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp#newcode200 core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp:200: pMaskBitmap = pBitmap->GetAlphaMask(); // Despite it's name, GetAlphaMask() does ...
5 years, 8 months ago (2015-04-17 16:20:17 UTC) #5
Lei Zhang
https://codereview.chromium.org/1098583002/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp (right): https://codereview.chromium.org/1098583002/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp#newcode200 core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp:200: pMaskBitmap = pBitmap->GetAlphaMask(); On 2015/04/17 16:20:16, Tom Sepez wrote: ...
5 years, 7 months ago (2015-05-08 05:40:39 UTC) #6
Tom Sepez
lgtm https://codereview.chromium.org/1098583002/diff/20001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right): https://codereview.chromium.org/1098583002/diff/20001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp#newcode355 core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:355: cmsUInt32Number in_type, out_type; nit: one per line. https://codereview.chromium.org/1098583002/diff/20001/core/src/fxge/ge/fx_ge_fontmap.cpp ...
5 years, 7 months ago (2015-05-08 16:03:00 UTC) #7
Lei Zhang
https://codereview.chromium.org/1098583002/diff/20001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right): https://codereview.chromium.org/1098583002/diff/20001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp#newcode355 core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:355: cmsUInt32Number in_type, out_type; On 2015/05/08 16:03:00, Tom Sepez wrote: ...
5 years, 7 months ago (2015-05-08 18:02:05 UTC) #8
Lei Zhang
Committed patchset #3 (id:40001) manually as f0a169e6fd5718995fa6ef8749c8d16cdad84985 (presubmit successful).
5 years, 7 months ago (2015-05-08 18:04:04 UTC) #9
Lei Zhang
I made the bots unhappy. Looking...
5 years, 7 months ago (2015-05-08 18:15:07 UTC) #10
Lei Zhang
5 years, 7 months ago (2015-05-08 20:30:28 UTC) #11
Message was sent while issue was closed.
On 2015/05/08 18:15:07, Lei Zhang wrote:
> I made the bots unhappy. Looking...

FTR, fixed in https://codereview.chromium.org/1135713004/

Powered by Google App Engine
This is Rietveld 408576698