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

Issue 1148353002: Fix four annoying warnings: (Closed)

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

Description

Fix four annoying warnings: Two "set but unused", one of which is surely an artifact from copying code around, and the other which ought to be used for the sake of clarity. Two are unknown "optimize" pragmas, remove them since the code has been shipped for years on other platforms under full optimization. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/e6406b39d09f765f5f1a1530a3a737f17a0666c1

Patch Set 1 #

Patch Set 2 : Fix check. #

Total comments: 8

Patch Set 3 : Remove pragma entirely, fix busted logic. #

Total comments: 2

Patch Set 4 : Move decl closer to use. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -22 lines) Patch
M core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp View 1 2 3 3 chunks +15 lines, -18 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Tom Sepez
Lei, simple review.
5 years, 7 months ago (2015-05-20 21:33:11 UTC) #2
Lei Zhang
+hans for the Clang question. https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp (right): https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp#newcode217 core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp:217: _DCTEncodeBitmap(pMaskDict, pMaskBitmap, pParam ? ...
5 years, 7 months ago (2015-05-20 21:43:16 UTC) #3
hans
https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp (right): https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp#newcode76 core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp:76: #if _FXM_PLATFORM_ == _FX_PLATFORM_WINDOWS_ On 2015/05/20 21:43:16, Lei Zhang ...
5 years, 7 months ago (2015-05-20 21:53:07 UTC) #5
Tom Sepez
https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp (right): https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp#newcode217 core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp:217: _DCTEncodeBitmap(pMaskDict, pMaskBitmap, pParam ? pParam->nQuality : 75, mask_buf, mask_size); ...
5 years, 7 months ago (2015-05-21 00:07:24 UTC) #6
Lei Zhang
https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp (right): https://codereview.chromium.org/1148353002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp#newcode76 core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp:76: #if _FXM_PLATFORM_ == _FX_PLATFORM_WINDOWS_ On 2015/05/21 00:07:23, Tom Sepez ...
5 years, 7 months ago (2015-05-21 00:14:09 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/1148353002/diff/40001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp (right): https://codereview.chromium.org/1148353002/diff/40001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp#newcode228 core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp:228: CPDF_Stream* pMaskStream = NULL; declare below where first ...
5 years, 7 months ago (2015-05-21 00:29:36 UTC) #8
Lei Zhang
And the CL description needs to be updated re: pragmas.
5 years, 7 months ago (2015-05-21 00:34:52 UTC) #9
Tom Sepez
https://codereview.chromium.org/1148353002/diff/40001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp (right): https://codereview.chromium.org/1148353002/diff/40001/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp#newcode228 core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp:228: CPDF_Stream* pMaskStream = NULL; On 2015/05/21 00:29:36, Lei Zhang ...
5 years, 7 months ago (2015-05-21 21:53:21 UTC) #10
Tom Sepez
5 years, 7 months ago (2015-05-21 21:54:23 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
e6406b39d09f765f5f1a1530a3a737f17a0666c1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698