Index: src/wave/test/mac-extension-test-suite.cc |
=================================================================== |
--- a/src/wave/test/mac-extension-test-suite.cc |
+++ b/src/wave/test/mac-extension-test-suite.cc |
@@ -129,7 +129,7 @@ |
void |
ChannelCoordinationTestCase::TestIntervalAfter (bool cchi, bool schi, bool guardi) |
{ |
- uint32_t now = Now ().GetMilliSeconds (); |
+ uint32_t now = static_cast<uint32_t> (Now ().GetMilliSeconds ()); |
NS_TEST_EXPECT_MSG_EQ (m_coordinator->IsCchInterval (), cchi, "now is " << now << "ms " |
"check whether is CCH interval"); |
NS_TEST_EXPECT_MSG_EQ (m_coordinator->IsSchInterval (), schi, "now is " << now << "ms " |
@@ -292,7 +292,7 @@ |
double angle = (PI / 180) * (360 / (nodesNumber - 1) * n); |
double x = cos (angle) * 10; |
double y = sin (angle) * 10; |
- Ptr<MobilityModel> model = NodeList::GetNode (n)->GetObject<MobilityModel> (); |
+ model = NodeList::GetNode (n)->GetObject<MobilityModel> (); |
model->SetPosition (Vector (x, y,0)); |
} |
@@ -676,6 +676,8 @@ |
bool |
ChannelAccessTestCase::Receive (Ptr<NetDevice> dev, Ptr<const Packet> pkt, uint16_t mode, const Address &sender) |
{ |
+ NS_UNUSED (mode); |
+ NS_UNUSED (sender); |
uint8_t *data = new uint8_t [pkt->GetSize ()]; |
pkt->CopyData(data, pkt->GetSize ()); |
@@ -1090,6 +1092,8 @@ |
bool |
AnnexC_TestCase::Receive (Ptr<NetDevice> dev, Ptr<const Packet> pkt, uint16_t mode, const Address &sender) |
{ |
+ NS_UNUSED (mode); |
+ NS_UNUSED (sender); |
uint8_t *data = new uint8_t [pkt->GetSize ()]; |
pkt->CopyData(data, pkt->GetSize ()); |