From 145ecf96696dc355ff413b372c4189b329ef439c Mon Sep 17 00:00:00 2001 From: Lalith Suresh Date: Sat, 9 Jul 2011 17:05:12 +0530 Subject: [PATCH] Bug 1209: ns-3-click fails to build on Fedora 15 when tests are enabled --- src/click/test/ipv4-click-routing-test.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/click/test/ipv4-click-routing-test.cc b/src/click/test/ipv4-click-routing-test.cc index 330ad0d25..5e1a24945 100644 --- a/src/click/test/ipv4-click-routing-test.cc +++ b/src/click/test/ipv4-click-routing-test.cc @@ -97,6 +97,9 @@ ClickIfidFromNameTest::DoRun () 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 @@ ClickIpMacAddressFromNameTest::DoRun () 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 @@ ClickTrivialTest::DoRun () 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