Bug 1209: ns-3-click fails to build on Fedora 15 when tests are enabled
authorLalith Suresh <suresh.lalith@gmail.com>
Sat, 09 Jul 2011 17:05:12 +0530
changeset 7361 e15cdf7d15b4
parent 7360 5949904cf955
child 7362 36b42a8b16d1
Bug 1209: ns-3-click fails to build on Fedora 15 when tests are enabled
src/click/test/ipv4-click-routing-test.cc
--- a/src/click/test/ipv4-click-routing-test.cc	Fri Jul 08 06:04:37 2011 -0400
+++ b/src/click/test/ipv4-click-routing-test.cc	Sat Jul 09 17:05:12 2011 +0530
@@ -97,6 +97,9 @@
 
   ret = simclick_sim_command (click->m_simNode, SIMCLICK_IFID_FROM_NAME, "eth1");
   NS_TEST_EXPECT_MSG_EQ (ret, -1, "No eth1 on node");
+
+  // Cast ret to void to work around set-but-unused warnings from compilers
+  (void) ret;
 }
 
 class ClickIpMacAddressFromNameTest : public TestCase
@@ -149,6 +152,9 @@
   NS_TEST_EXPECT_MSG_EQ (strcmp (buf, "00:00:00:00:00:00"), 0, "tun0 has IP 127.0.0.1");
 
   delete [] buf;
+
+  // Cast ret to void to work around set-but-unused warnings from compilers
+  (void) ret;
 }
 
 class ClickTrivialTest : public TestCase
@@ -191,6 +197,9 @@
   NS_TEST_EXPECT_MSG_EQ (ret, 0, "eth1 does not exist, so return 0");
 
   delete [] buf;
+
+  // Cast ret to void to work around set-but-unused warnings from compilers
+  (void) ret;
 }
 
 class ClickIfidFromNameTestSuite : public TestSuite