Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mark unused attribute as unused.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 14 Aug 2017 21:30:31 +0000 (23:30 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 14 Aug 2017 21:30:31 +0000 (23:30 +0200)
examples/s4u/app-bittorrent/s4u_tracker.hpp

index 6aff63d..591233f 100644 (file)
@@ -22,7 +22,7 @@ public:
 };
 
 class TrackerAnswer {
-  int interval;         // how often the peer should contact the tracker (unused for now)
+  XBT_ATTRIB_UNUSED int interval; // how often the peer should contact the tracker (unused for now)
   std::set<int>* peers; // the peer list the peer has asked for.
 public:
   explicit TrackerAnswer(int interval) : interval(interval) { peers = new std::set<int>; }