summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2011-01-11 12:58:19 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-01-11 12:58:19 (GMT)
commit2da612ca235fe65a7bfc7a7515fec15eaf1134e7 (patch)
tree3bfe8fc84bd4764414ab6d460a7e4568d0385d92 /src/network
parent62a681d116154235325c8b13f6df0042d81851ee (diff)
downloadQt-2da612ca235fe65a7bfc7a7515fec15eaf1134e7.zip
Qt-2da612ca235fe65a7bfc7a7515fec15eaf1134e7.tar.gz
Qt-2da612ca235fe65a7bfc7a7515fec15eaf1134e7.tar.bz2
fix warning "missing braces around initializer for 'in_addr::<anonymous union>'"
v.s_addr = 0; does the same Merge-request: 955 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/socket/qnativesocketengine_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/socket/qnativesocketengine_win.cpp b/src/network/socket/qnativesocketengine_win.cpp
index dbf443e..eec78c4 100644
--- a/src/network/socket/qnativesocketengine_win.cpp
+++ b/src/network/socket/qnativesocketengine_win.cpp
@@ -918,7 +918,8 @@ QNetworkInterface QNativeSocketEnginePrivate::nativeMulticastInterface() const
}
#endif
- struct in_addr v = { 0 };
+ struct in_addr v;
+ v.s_addr = 0;
QT_SOCKOPTLEN_T sizeofv = sizeof(v);
if (::getsockopt(socketDescriptor, IPPROTO_IP, IP_MULTICAST_IF, (char *) &v, &sizeofv) == -1)
return QNetworkInterface();