NSC unused variables
authorJohn Abraham<john.abraham@gatech.edu>
Mon, 23 May 2011 10:33:07 -0400
changeset 7257 1b1f34b88a4a
parent 7256 b04ba6772f8c
child 7258 d8d347dcf5c3
NSC unused variables
src/internet/model/nsc-tcp-socket-impl.cc
--- a/src/internet/model/nsc-tcp-socket-impl.cc	Sun May 22 23:18:47 2011 -0700
+++ b/src/internet/model/nsc-tcp-socket-impl.cc	Mon May 23 10:33:07 2011 -0400
@@ -448,6 +448,9 @@
       bool found;
       found = packet->PeekPacketTag (tag);
       NS_ASSERT (found);
+      // cast found to void, to suppress 'found' set but not used
+      // compiler warning in optimized builds
+      (void) found;
       fromAddress = tag.GetAddress ();
     }
   return packet;