summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-23 20:56:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-24 19:33:34 +0200
commitb236bf6a23172a5008d0e715c913e44fb69d5e31 (patch)
tree879684bac63c33206de8d7ff2660deb10ccf2961
parent90acf0e706bb4c7b33b6e6b4da7258699231df84 (diff)
initialize first union member (clang warning)
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
index 39b1f4a2..ea44133c 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -41,7 +41,7 @@ void TrackerImpl::run() {
while (sock.hasPendingDatagrams())
{
- data = decltype(data){0,0, 0,0,0};
+ data = decltype(data){0,0, {0,0,0, 0,0,0}};
int sz = sock.readDatagram(reinterpret_cast<char*>(&data), sizeof(data));
int flags = data.flags & F::Mask;