Bug 1236: click-internet-stack-helper.cc:293:12: error: variable "result" set but not used

This commit is contained in:
John Abraham
2011-08-09 11:36:18 -04:00
parent 44bd9fc05e
commit b0095351f7
2 changed files with 1 additions and 1 deletions

View File

@@ -45,7 +45,6 @@ int main (int argc, char *argv[])
{
#ifdef NS3_CLICK
double rss = -80;
Time interPacketInterval = Seconds (1.0);
// Setup nodes
NodeContainer wifiNodes;

View File

@@ -297,6 +297,7 @@ ClickInternetStackHelper::EnablePcapIpv4Internal (std::string prefix, Ptr<Ipv4>
result = ipv4L3Protocol->TraceConnectWithoutContext ("Rx", MakeCallback (&Ipv4L3ProtocolRxTxSink));
NS_ASSERT_MSG (result == true, "ClickInternetStackHelper::EnablePcapIpv4Internal(): "
"Unable to connect ipv4L3Protocol \"Rx\"");
(void) result; //cast to void to suppress variable set but not used compiler warning in optimized builds
}
g_interfaceFileMapIpv4[std::make_pair (ipv4, interface)] = file;