Silliness for optimized version
authorCraig Dowell <craigdo@ee.washington.edu>
Mon, 13 Aug 2007 20:14:36 -0700
changeset 1436 9f9fe7919c89
parent 1435 a70de165a25a
child 1437 1d32949ae397
Silliness for optimized version
examples/csma-multicast.cc
--- a/examples/csma-multicast.cc	Mon Aug 13 19:54:47 2007 -0700
+++ b/examples/csma-multicast.cc	Mon Aug 13 20:14:36 2007 -0700
@@ -193,6 +193,15 @@
   NS_DEBUG ("ifIndexNd2Lan1 = " << ifIndexNd2Lan1);
   NS_DEBUG ("ifIndexNd3 = " << ifIndexNd3);
   NS_DEBUG ("ifIndexNd4 = " << ifIndexNd4);
+//
+// A little silliness to let optimized code work while still printing all 
+// results in debug code (without attribute).
+//
+  nd3 = nd3;
+  ifIndexNd1 = ifIndexNd1;
+  ifIndexNd3 = ifIndexNd3;
+  ifIndexNd4 = ifIndexNd4;
+
   NS_DEBUG("Configure multicasting.");
 //
 // Now we can configure multicasting.  As described above, the multicast