1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-2 fixed warning about unused variable

This commit is contained in:
Philippe Renon 2015-10-04 22:41:46 +02:00 committed by James Duley
parent bd8f03398e
commit e22061cc8e

View File

@ -210,8 +210,8 @@ void UdpReceiver::onReadyRead()
while (inSocket->hasPendingDatagrams()) {
QByteArray datagram;
datagram.resize(inSocket->pendingDatagramSize());
quint64 datagramSize;
datagramSize = inSocket->readDatagram(datagram.data(), datagram.size());
// quint64 datagramSize;
/*datagramSize =*/ inSocket->readDatagram(datagram.data(), datagram.size());
processDatagram(datagram);
}