--- 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