From b236bf6a23172a5008d0e715c913e44fb69d5e31 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 23 Sep 2014 20:56:57 +0200 Subject: initialize first union member (clang warning) --- ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(&data), sizeof(data)); int flags = data.flags & F::Mask; -- cgit v1.2.3