Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
less black magic here
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 30 May 2017 08:48:49 +0000 (10:48 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 30 May 2017 08:48:49 +0000 (10:48 +0200)
src/kernel/activity/ActivityImpl.hpp
src/simix/smx_synchro_private.h

index 13c284a..1757126 100644 (file)
@@ -35,9 +35,8 @@ namespace activity {
     friend void intrusive_ptr_add_ref(ActivityImpl * activity)
     {
       // Atomic operation! Do not split in two instructions!
-      auto previous = (activity->refcount_)++;
+      XBT_ATTRIB_UNUSED auto previous = (activity->refcount_)++;
       xbt_assert(previous != 0);
-      (void)previous;
     }
 
     friend void intrusive_ptr_release(ActivityImpl * activity)
index 37b5f13..c263d25 100644 (file)
@@ -32,9 +32,8 @@ public:
   friend void intrusive_ptr_add_ref(MutexImpl* mutex)
   {
     // Atomic operation! Do not split in two instructions!
-    auto previous = (mutex->refcount_)++;
+    XBT_ATTRIB_UNUSED auto previous = (mutex->refcount_)++;
     xbt_assert(previous != 0);
-    (void) previous;
   }
   friend void intrusive_ptr_release(MutexImpl* mutex)
   {