avoid optimized build warning.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 03 Mar 2008 21:00:27 +0100
changeset 2560 627fef42e280
parent 2559 ab98bf436a17
child 2561 fb49fd82cbfd
avoid optimized build warning.
src/internet-node/pcap-trace.cc
--- a/src/internet-node/pcap-trace.cc	Mon Mar 03 20:47:12 2008 +0100
+++ b/src/internet-node/pcap-trace.cc	Mon Mar 03 21:00:27 2008 +0100
@@ -86,7 +86,8 @@
 uint32_t
 PcapTrace::GetNodeIndex (std::string context) const
 {
-  std::string::size_type pos = context.find ("/NodeList/");
+  std::string::size_type pos;
+  pos = context.find ("/NodeList/");
   NS_ASSERT (pos == 0);
   std::string::size_type afterNodeIndex = context.find ("/", 11);
   NS_ASSERT (afterNodeIndex != std::string::npos);