Descriptiongn 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 #Messages
Total messages: 6 (0 generated)
|