1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +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()) { while (inSocket->hasPendingDatagrams()) {
QByteArray datagram; QByteArray datagram;
datagram.resize(inSocket->pendingDatagramSize()); datagram.resize(inSocket->pendingDatagramSize());
quint64 datagramSize; // quint64 datagramSize;
datagramSize = inSocket->readDatagram(datagram.data(), datagram.size()); /*datagramSize =*/ inSocket->readDatagram(datagram.data(), datagram.size());
processDatagram(datagram); processDatagram(datagram);
} }