fix optimized build
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue May 05 13:20:06 2009 +0100 (9 months ago)
changeset 3950e510ebd14c4e
parent 3949 6304adcb5326
child 3951 86bc239feb65
fix optimized build
src/devices/wifi/wifi-remote-station-manager.cc
     1.1 --- a/src/devices/wifi/wifi-remote-station-manager.cc	Mon May 04 18:35:43 2009 +0100
     1.2 +++ b/src/devices/wifi/wifi-remote-station-manager.cc	Tue May 05 13:20:06 2009 +0100
     1.3 @@ -659,8 +659,10 @@
     1.4  uint32_t
     1.5  WifiRemoteStation::GetFragmentOffset (Ptr<const Packet> packet, uint32_t fragmentNumber)
     1.6  {
     1.7 +#ifdef NS3_ASSERT_ENABLE
     1.8    uint32_t nFragment = GetNFragments (packet);
     1.9    NS_ASSERT (fragmentNumber < nFragment);
    1.10 +#endif
    1.11    uint32_t fragmentOffset = fragmentNumber * GetManager ()->GetFragmentationThreshold ();
    1.12    return fragmentOffset;
    1.13  }