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

Issue 1849443003: Re-enable all the windows warnings except 4267 (Closed)

Created:
4 years, 8 months ago by Wei Li
Modified:
4 years, 8 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Re-enable all the windows warnings except 4267 The code is changed or had been changed to no longer generate these warnings. It is safe to re-enabled these warnings. In this code change, we fixed some code which generates warnings 4018 (signed/unsigned mismatch) and 4146 (unary minus operator applied to unsigned type, result still unsigned). Warning 4333 (right shift by too large amount, data loss) and 4345 (an object of POD type constructed with an initializer of the form () will be default-initialized) are no longer generated. The same setting is applied and verified for GN build as well. BUG=pdfium:29 Committed: https://pdfium.googlesource.com/pdfium/+/47ca692c8150cb39abef5737e866b91e6a105b80

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -36 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -17 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_syntax_parser.h View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/fx_basic_gcc.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M core/fxcrt/fx_basic_gcc_unittest.cpp View 1 2 chunks +6 lines, -5 lines 0 comments Download
M core/fxge/ge/fx_ge_fontmap.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M pdfium.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
Wei Li
PTAL, thanks
4 years, 8 months ago (2016-03-30 23:17:47 UTC) #3
Tom Sepez
https://codereview.chromium.org/1849443003/diff/20001/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp File core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/1849443003/diff/20001/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp#newcode719 core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp:719: if (offset > m_dwFileLen) probably should check for < ...
4 years, 8 months ago (2016-03-30 23:28:29 UTC) #4
Wei Li
https://codereview.chromium.org/1849443003/diff/20001/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp File core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/1849443003/diff/20001/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp#newcode719 core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp:719: if (offset > m_dwFileLen) On 2016/03/30 23:28:28, Tom Sepez ...
4 years, 8 months ago (2016-03-31 01:39:09 UTC) #5
Tom Sepez
lgtm
4 years, 8 months ago (2016-03-31 17:04:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849443003/40001
4 years, 8 months ago (2016-03-31 22:08:14 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://pdfium.googlesource.com/pdfium/+/47ca692c8150cb39abef5737e866b91e6a105b80
4 years, 8 months ago (2016-03-31 22:08:31 UTC) #10
Oliver Chang
4 years, 8 months ago (2016-04-04 23:25:52 UTC) #11
Message was sent while issue was closed.
On 2016/03/31 22:08:31, commit-bot: I haz the power wrote:
> Committed patchset #2 (id:40001) as
>
https://pdfium.googlesource.com/pdfium/+/47ca692c8150cb39abef5737e866b91e6a10...

Looks like this is causing
https://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng...:

[9226/22192] CXX obj/third_party/pdfium/formfiller/cffl_iformfiller.obj
FAILED: ninja -t msvc -e environment.x86 -- E:\b\build\goma/gomacc.exe
"E:\b\depot_tools\win_toolchain\vs_files\95ddda401ec5678f15eeed01d2bee08fcbc5ee97\VC\bin\amd64_x86/cl.exe"
/nologo /showIncludes /FC
@obj/third_party/pdfium/third_party/fx_libopenjpeg/dwt.obj.rsp /c
../../third_party/pdfium/third_party/libopenjpeg20/dwt.c
/Foobj/third_party/pdfium/third_party/fx_libopenjpeg/dwt.obj
/Fd"obj/third_party/pdfium/third_party/fx_libopenjpeg_c.pdb"
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(296):
error C2220: warning treated as error - no 'object' file generated
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(296):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(297):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(303):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(304):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(317):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(318):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(324):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(325):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(345):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(347):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(349):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(351):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(360):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(362):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(364):
warning C4018: '>=': signed/unsigned mismatch
e:\b\build\slave\win_gn\build\src\third_party\pdfium\third_party\libopenjpeg20\dwt.c(366):
warning C4018: '>=': signed/unsigned mismatch

Powered by Google App Engine
This is Rietveld 408576698