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-23 20:56:57 +0200
commit9b3c04d1187ceeb83e7e1eead0714fd4578d07d7 (patch)
tree6f562dd6b9f82b429c64285b10cde636b1055851
parent7c0bcbc7d4f8da28450e0b57a9e52fd50a212d4f (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;