View | Details | Raw Unified | Return to bug 1156
Collapse All | Expand All

(-)a/src/internet/helper/internet-stack-helper.cc (+6 lines)
 Lines 492-497    Link Here 
492
      result = ipv4L3Protocol->TraceConnectWithoutContext ("Rx", MakeCallback (&Ipv4L3ProtocolRxTxSink));
492
      result = ipv4L3Protocol->TraceConnectWithoutContext ("Rx", MakeCallback (&Ipv4L3ProtocolRxTxSink));
493
      NS_ASSERT_MSG (result == true, "InternetStackHelper::EnablePcapIpv4Internal():  "
493
      NS_ASSERT_MSG (result == true, "InternetStackHelper::EnablePcapIpv4Internal():  "
494
                     "Unable to connect ipv4L3Protocol \"Rx\"");
494
                     "Unable to connect ipv4L3Protocol \"Rx\"");
495
      // cast result to void, to suppress ‘result’ set but not used compiler-warning
496
      // for optimized builds
497
      (void) result;
495
    }
498
    }
496
499
497
  g_interfaceFileMapIpv4[std::make_pair (ipv4, interface)] = file;
500
  g_interfaceFileMapIpv4[std::make_pair (ipv4, interface)] = file;
 Lines 584-589    Link Here 
584
      result = ipv6L3Protocol->TraceConnectWithoutContext ("Rx", MakeCallback (&Ipv6L3ProtocolRxTxSink));
587
      result = ipv6L3Protocol->TraceConnectWithoutContext ("Rx", MakeCallback (&Ipv6L3ProtocolRxTxSink));
585
      NS_ASSERT_MSG (result == true, "InternetStackHelper::EnablePcapIpv6Internal():  "
588
      NS_ASSERT_MSG (result == true, "InternetStackHelper::EnablePcapIpv6Internal():  "
586
                     "Unable to connect ipv6L3Protocol \"Rx\"");
589
                     "Unable to connect ipv6L3Protocol \"Rx\"");
590
      // cast found to void, to suppress ‘result’ set but not used compiler-warning
591
      // for optimized builds
592
      (void) result;
587
    }
593
    }
588
594
589
  g_interfaceFileMapIpv6[std::make_pair (ipv6, interface)] = file;
595
  g_interfaceFileMapIpv6[std::make_pair (ipv6, interface)] = file;

Return to bug 1156