Bug 1236: click-internet-stack-helper.cc:293:12: error: variable "result" set but not used
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user