2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[4283] Fixed an unused but set warning

This commit is contained in:
Francis Dupont
2016-07-02 13:02:46 +02:00
parent 41413db0a4
commit 99f610ff41

View File

@@ -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);