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

Issue 430963002: gn win: Fix potentially uninitialized variable warning in zip_internal (Closed)

Created:
6 years, 4 months ago by scottmg
Modified:
6 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

gn win: Fix potentially uninitialized variable warning in zip_internal The gn Windows build says d:\src\cr3\src\third_party\zlib\google\zip_internal.cc(62) : error C2220: warning treated as error - no 'object' file generated d:\src\cr3\src\third_party\zlib\google\zip_internal.cc(62) : warning C4701: potentially uninitialized local variable 'creation_disposition' used This warning is disabled in the gyp build, but it seems better to keep it on if possible, and it seems like depending on the flags passed to ZipOpenFunc, it could indeed be passing an uninitialized value to ::CreateFile. Setting it explicitly to 0 will cause ::CreateFile to fail, if it's left unset by the ifs. R=satorux@chromium.org BUG=354261 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286711

Patch Set 1 #

Total comments: 2

Patch Set 2 : move initialized to definition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M third_party/zlib/google/zip_internal.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scottmg
6 years, 4 months ago (2014-07-30 21:35:05 UTC) #1
satorux1
LGTM with an optional request: https://codereview.chromium.org/430963002/diff/1/third_party/zlib/google/zip_internal.cc File third_party/zlib/google/zip_internal.cc (right): https://codereview.chromium.org/430963002/diff/1/third_party/zlib/google/zip_internal.cc#newcode41 third_party/zlib/google/zip_internal.cc:41: DWORD share_mode, flags_and_attributes; while ...
6 years, 4 months ago (2014-07-30 21:40:40 UTC) #2
scottmg
Thanks https://codereview.chromium.org/430963002/diff/1/third_party/zlib/google/zip_internal.cc File third_party/zlib/google/zip_internal.cc (right): https://codereview.chromium.org/430963002/diff/1/third_party/zlib/google/zip_internal.cc#newcode41 third_party/zlib/google/zip_internal.cc:41: DWORD share_mode, flags_and_attributes; On 2014/07/30 21:40:39, satorux1 wrote: ...
6 years, 4 months ago (2014-07-30 21:43:44 UTC) #3
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 4 months ago (2014-07-30 21:44:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/430963002/20001
6 years, 4 months ago (2014-07-30 21:45:49 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-07-31 03:35:02 UTC) #6
Message was sent while issue was closed.
Change committed as 286711

Powered by Google App Engine
This is Rietveld 408576698