diff options
author | vivek.vg@samsung.com <vivek.vg@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-18 12:34:37 +0000 |
---|---|---|
committer | vivek.vg@samsung.com <vivek.vg@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-18 12:35:51 +0000 |
commit | fc687ad3b2a0181afd01a226dce9d295c04495a1 (patch) | |
tree | d060b15e3cf34b72415c79878b7d0c99aac496c6 /net/proxy | |
parent | 097f6f09a9fe9fdfbbc8b8d4fb1ac61bde0eb4aa (diff) | |
download | chromium_src-fc687ad3b2a0181afd01a226dce9d295c04495a1.zip chromium_src-fc687ad3b2a0181afd01a226dce9d295c04495a1.tar.gz chromium_src-fc687ad3b2a0181afd01a226dce9d295c04495a1.tar.bz2 |
[gcc 4.8] Explicitly initialize net_error in ProxyRetryInfo to fix build failure
gcc 4.8 reports build failure as net_error is not explicitly initialized. The error
thrown is as below -
net/proxy/proxy_retry_info.h: In member function
‘virtual void net::{anonymous}::ProxyListTest_DeprioritizeBadProxies_Test::TestBody()’:
net/proxy/proxy_retry_info.h:15:8: error: ‘proxy_retry_info.net::ProxyRetryInfo::net_error’
is used uninitialized in this function [-Werror=uninitialized]
R=kundaji@chromium.org, rsleevi@chromium.org
Review URL: https://codereview.chromium.org/485603002
Cr-Commit-Position: refs/heads/master@{#290239}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r-- | net/proxy/proxy_retry_info.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/proxy/proxy_retry_info.h b/net/proxy/proxy_retry_info.h index a36fcd9..b65f6f5 100644 --- a/net/proxy/proxy_retry_info.h +++ b/net/proxy/proxy_retry_info.h @@ -13,7 +13,7 @@ namespace net { // Contains the information about when to retry a proxy server. struct ProxyRetryInfo { - ProxyRetryInfo() : try_while_bad(true) {} + ProxyRetryInfo() : try_while_bad(true), net_error(0) {} // We should not retry until this time. base::TimeTicks bad_until; |