summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-10-09 18:17:26 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-10 01:18:27 +0000
commit7764fe9ea52233096b7916614eb7c60b26bbca05 (patch)
tree0f7d3570c76e7387f1f329045c55fe70cce69971 /net
parentfbe0354f403ff793ccacd4d1e162583c11bd58db (diff)
downloadchromium_src-7764fe9ea52233096b7916614eb7c60b26bbca05.zip
chromium_src-7764fe9ea52233096b7916614eb7c60b26bbca05.tar.gz
chromium_src-7764fe9ea52233096b7916614eb7c60b26bbca05.tar.bz2
Enforce WARN_UNUSED_RESULT attribute on Windows
BUG=none R=cpu,danakj,dpranke,hans,kelvinp,rickyz,sky,sorin,thestig,tuttle,yukawa TBR=vitalybuka Review URL: https://codereview.chromium.org/1390223002 Cr-Commit-Position: refs/heads/master@{#353450}
Diffstat (limited to 'net')
-rw-r--r--net/dns/address_sorter_win.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/dns/address_sorter_win.cc b/net/dns/address_sorter_win.cc
index 8d97a41..f469dae 100644
--- a/net/dns/address_sorter_win.cc
+++ b/net/dns/address_sorter_win.cc
@@ -109,8 +109,11 @@ class AddressSorterWin : public AddressSorter {
list.reserve(output_buffer_->iAddressCount);
for (int i = 0; i < output_buffer_->iAddressCount; ++i) {
IPEndPoint ipe;
- ipe.FromSockAddr(output_buffer_->Address[i].lpSockaddr,
- output_buffer_->Address[i].iSockaddrLength);
+ bool result =
+ ipe.FromSockAddr(output_buffer_->Address[i].lpSockaddr,
+ output_buffer_->Address[i].iSockaddrLength);
+ DCHECK(result) << "Unable to roundtrip between IPEndPoint and "
+ << "SOCKET_ADDRESS!";
// Unmap V4MAPPED IPv6 addresses so that Happy Eyeballs works.
if (IsIPv4Mapped(ipe.address())) {
ipe = IPEndPoint(ConvertIPv4MappedToIPv4(ipe.address()),