From 5b1a56ee6c9e83303465efb30a5ed48be92fe33e Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Tue, 18 Sep 2018 16:36:04 -0400 Subject: [PATCH] Renamed to avoid compiler warning --- communication/packetizer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/communication/packetizer.cpp b/communication/packetizer.cpp index 9e8251a..19ec1e9 100644 --- a/communication/packetizer.cpp +++ b/communication/packetizer.cpp @@ -85,9 +85,8 @@ bool Packetizer::input(const std::vector& inputBytes) { // Got a good packet gotGoodPackets = true; processedPackets.push_back(std::make_shared(packet)); - for (auto i = 0; i < packetLength; i++) + for (auto a = 0; a < packetLength; a++) bytes.pop_front(); - } else { if(gotGoodPackets) // Don't complain unless we've already gotten a good packet, in case we started in the middle of a stream std::cout << "Dropping packet due to bad checksum" << std::endl;