Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(403)

Unified Diff: src/wave/test/mac-extension-test-suite.cc

Issue 337010043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Update patch per coding style requirements Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wave/model/wave-net-device.cc ('k') | src/wave/test/ocb-test-suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ());
« no previous file with comments | « src/wave/model/wave-net-device.cc ('k') | src/wave/test/ocb-test-suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b