diff --git a/src/devices/tap-bridge/tap-bridge.cc b/src/devices/tap-bridge/tap-bridge.cc index 8f0f198bc..9eeaa874e 100644 --- a/src/devices/tap-bridge/tap-bridge.cc +++ b/src/devices/tap-bridge/tap-bridge.cc @@ -770,7 +770,8 @@ TapBridge::ReceiveFromBridgedDevice ( NS_LOG_LOGIC ("Pkt LengthType is " << header.GetLengthType ()); NS_LOG_LOGIC ("Pkt size is " << p->GetSize ()); - write (m_sock, p->PeekData (), p->GetSize ()); + int32_t result __attribute__ ((unused)); + result = write (m_sock, p->PeekData (), p->GetSize ()); } void diff --git a/src/internet-stack/arp-header.cc b/src/internet-stack/arp-header.cc index d8ff2c281..778f2a3af 100644 --- a/src/internet-stack/arp-header.cc +++ b/src/internet-stack/arp-header.cc @@ -148,12 +148,11 @@ uint32_t ArpHeader::Deserialize (Buffer::Iterator start) { Buffer::Iterator i = start; - uint32_t hardwareType = i.ReadNtohU16 (); // Read HRD + uint32_t hardwareType __attribute__ ((unused)) = i.ReadNtohU16 (); // Read HRD uint32_t protocolType = i.ReadNtohU16 (); // Read PRO uint32_t hardwareAddressLen = i.ReadU8 (); // Read HLN uint32_t protocolAddressLen = i.ReadU8 (); // Read PLN - hardwareType = hardwareType; // // It is implicit here that we have a protocol type of 0x800 (IP). // It is also implicit here that we are using Ipv4 (PLN == 4).