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

Unified Diff: src/internet/test/ipv4-list-routing-test-suite.cc

Issue 337950043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Update patch for latest module changes 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/internet/test/ipv4-header-test.cc ('k') | src/internet/test/ipv4-raw-test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/internet/test/ipv4-list-routing-test-suite.cc
===================================================================
--- a/src/internet/test/ipv4-list-routing-test-suite.cc
+++ b/src/internet/test/ipv4-list-routing-test-suite.cc
@@ -31,16 +31,16 @@
*/
class Ipv4ARouting : public Ipv4RoutingProtocol {
public:
- Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr) { return 0; }
+ Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr) { NS_UNUSED (header); NS_UNUSED (sockerr); return 0; }
bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev,
UnicastForwardCallback ucb, MulticastForwardCallback mcb,
- LocalDeliverCallback lcb, ErrorCallback ecb) { return false; }
- void NotifyInterfaceUp (uint32_t interface) {}
- void NotifyInterfaceDown (uint32_t interface) {}
- void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address) {}
- void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address) {}
+ LocalDeliverCallback lcb, ErrorCallback ecb) { NS_UNUSED (header); return false; }
+ void NotifyInterfaceUp (uint32_t interface) {NS_UNUSED (interface);}
+ void NotifyInterfaceDown (uint32_t interface) {NS_UNUSED (interface);}
+ void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address) {NS_UNUSED (interface); NS_UNUSED (address);}
+ void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address) {NS_UNUSED (interface); NS_UNUSED (address);}
void SetIpv4 (Ptr<Ipv4> ipv4) {}
- void PrintRoutingTable (Ptr<OutputStreamWrapper> stream, Time::Unit unit) const {}
+ void PrintRoutingTable (Ptr<OutputStreamWrapper> stream, Time::Unit unit) const {NS_UNUSED (unit);}
};
/**
@@ -51,16 +51,16 @@
*/
class Ipv4BRouting : public Ipv4RoutingProtocol {
public:
- Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr) { return 0; }
+ Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr) { NS_UNUSED (header); NS_UNUSED (sockerr); return 0; }
bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev,
UnicastForwardCallback ucb, MulticastForwardCallback mcb,
- LocalDeliverCallback lcb, ErrorCallback ecb) { return false; }
- void NotifyInterfaceUp (uint32_t interface) {}
- void NotifyInterfaceDown (uint32_t interface) {}
- void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address) {}
- void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address) {}
+ LocalDeliverCallback lcb, ErrorCallback ecb) { NS_UNUSED (header); return false; }
+ void NotifyInterfaceUp (uint32_t interface) {NS_UNUSED (interface);}
+ void NotifyInterfaceDown (uint32_t interface) {NS_UNUSED (interface);}
+ void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address) {NS_UNUSED (interface); NS_UNUSED (address);}
+ void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address) {NS_UNUSED (interface); NS_UNUSED (address);}
void SetIpv4 (Ptr<Ipv4> ipv4) {}
- void PrintRoutingTable (Ptr<OutputStreamWrapper> stream, Time::Unit unit) const {}
+ void PrintRoutingTable (Ptr<OutputStreamWrapper> stream, Time::Unit unit) const {NS_UNUSED (unit);}
};
/**
« no previous file with comments | « src/internet/test/ipv4-header-test.cc ('k') | src/internet/test/ipv4-raw-test.cc » ('j') | no next file with comments »

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