Bug 1779 - NS_UNUSED_GLOBAL not working in attribute test class declaration
authorVedran Miletić <rivanvx@gmail.com>
Mon, 21 Oct 2013 10:38:06 +0200
changeset 10220 fd5b94ebc43f
parent 10219 a48c25fffcd7
child 10221 6f82f37b5c76
Bug 1779 - NS_UNUSED_GLOBAL not working in attribute test class declaration
src/core/test/attribute-test-suite.cc
--- a/src/core/test/attribute-test-suite.cc	Sun Oct 20 16:26:19 2013 -0700
+++ b/src/core/test/attribute-test-suite.cc	Mon Oct 21 10:38:06 2013 +0200
@@ -200,6 +200,18 @@
     return tid;
   }
 
+  AttributeObjectTest (void)
+  {
+    NS_UNUSED (m_boolTest);
+    NS_UNUSED (m_int16);
+    NS_UNUSED (m_int16WithBounds);
+    NS_UNUSED (m_uint8);
+    NS_UNUSED (m_float);
+    NS_UNUSED (m_enum);
+  }
+
+  virtual ~AttributeObjectTest (void) {};
+
   void AddToVector1 (void) { m_vector1.push_back (CreateObject<Derived> ()); }
   void AddToVector2 (void) { m_vector2.push_back (CreateObject<Derived> ()); }
 
@@ -225,13 +237,13 @@
   int8_t DoGetIntSrc (void) const { return m_intSrc2; }
 
   bool m_boolTestA;
-  bool NS_UNUSED_GLOBAL (m_boolTest);
-  int16_t NS_UNUSED_GLOBAL (m_int16);
-  int16_t NS_UNUSED_GLOBAL (m_int16WithBounds);
+  bool m_boolTest;
+  int16_t m_int16;
+  int16_t m_int16WithBounds;
   int16_t m_int16SetGet;
-  uint8_t NS_UNUSED_GLOBAL (m_uint8);
-  float NS_UNUSED_GLOBAL (m_float);
-  enum Test_e NS_UNUSED_GLOBAL (m_enum);
+  uint8_t m_uint8;
+  float m_float;
+  enum Test_e m_enum;
   Ptr<RandomVariableStream> m_random;
   std::vector<Ptr<Derived> > m_vector1;
   std::vector<Ptr<Derived> > m_vector2;