diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-03 07:03:39 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-03 07:03:39 +0000 |
commit | ed8e57da499e4ad0398f78696c3b2dfaa66ceaba (patch) | |
tree | eb8d06a0dc4d45d7aedf8822d62711e49f9acb9a /base/time | |
parent | 7a70d2211a276c2b675d07319d1393b43059f8f6 (diff) | |
download | chromium_src-ed8e57da499e4ad0398f78696c3b2dfaa66ceaba.zip chromium_src-ed8e57da499e4ad0398f78696c3b2dfaa66ceaba.tar.gz chromium_src-ed8e57da499e4ad0398f78696c3b2dfaa66ceaba.tar.bz2 |
Fixes for re-enabling more MSVC level 4 warnings: base/ edition
This contains fixes for the following sorts of issues:
* Signedness mismatch
* Assignment inside conditional
* Nonstandard extension: unnamed struct/union
* Octal escape sequence terminated by decimal number
* Possibly-uninitialized local variable
This also contains a very small number of other cleanups/simplifications to
nearby code.
BUG=81439
TEST=none
Review URL: https://codereview.chromium.org/368133002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time')
-rw-r--r-- | base/time/time_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/time/time_win.cc b/base/time/time_win.cc index 93f0c25..cf7be68 100644 --- a/base/time/time_win.cc +++ b/base/time/time_win.cc @@ -251,7 +251,7 @@ void Time::Explode(bool is_local, Exploded* exploded) const { // FILETIME in local time if necessary. bool success = true; // FILETIME in SYSTEMTIME (exploded). - SYSTEMTIME st; + SYSTEMTIME st = {0}; if (is_local) { SYSTEMTIME utc_st; // We don't use FileTimeToLocalFileTime here, since it uses the current |