Browse Source

[4283] Fixed an unused but set warning

Francis Dupont 8 years ago
parent
commit
99f610ff41
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bin/perfdhcp/tests/test_control_unittest.cc

+ 2 - 0
src/bin/perfdhcp/tests/test_control_unittest.cc

@@ -90,6 +90,8 @@ public:
     void setRelativeDueTimes(const int send_secs, const int renew_secs = 0,
                              const int release_secs = 0) {
         ptime now = microsec_clock::universal_time();
+	// Use now to avoid unused but set warning
+	ASSERT_FALSE(now.is_special());
         basic_rate_control_.setRelativeDue(send_secs);
         renew_rate_control_.setRelativeDue(renew_secs);
         release_rate_control_.setRelativeDue(release_secs);