From f26febe13d4fe1b57da8341e2905c3905bba2c87 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Wed, 6 Jan 2021 05:39:53 +0100 Subject: [PATCH] Remove some unused variables --- src/net-ipv4.cpp | 2 -- src/net.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/net-ipv4.cpp b/src/net-ipv4.cpp index 9dc1fd2..00950c3 100644 --- a/src/net-ipv4.cpp +++ b/src/net-ipv4.cpp @@ -106,8 +106,6 @@ namespace Net::Ipv4 void HandlePacket( const Ethernet::Header& ethernetHeader, const uint8_t* buffer, const size_t bufferSize) { - char printBuffer[USPI_FRAME_BUFFER_SIZE] = {}; - Header header; const auto headerSize = Header::Deserialize(header, buffer, bufferSize); if (headerSize != Header::SerializedLength()) diff --git a/src/net.cpp b/src/net.cpp index 49ef71b..9e6865d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -29,7 +29,6 @@ namespace Net } // Wait 3 seconds, then run postInitialize - const auto optionsVoid = static_cast(&options); DEBUG_LOG("Scheduled post-init\r\n"); Net::options = &options; postInitializeTime = read32(ARM_SYSTIMER_CLO) + 30000; @@ -86,7 +85,6 @@ namespace Net { // Try parsing the IP address in the options. unsigned int ip[4]; - char dot; int scanned = sscanf(options->GetIPAddress(), "%u.%u.%u.%u", &ip[0], &ip[1], &ip[2], &ip[3]);